<template>
  <el-dialog
    @open="openChangeTital()"
    :title="isTitle"
    :close-on-click-modal="false"
    fullscreen
    :visible.sync="visible"
  >
    <el-form
      :model="dataForm"
      :rules="dataRule"
      ref="dataForm"
      :disabled="isDisabled"
      @keyup.enter.native="dataFormSubmit()"
      label-width="100px"
    >
   
  
      <el-tabs v-model="activeName">
        <el-tab-pane label="个人基本信息" name="first" style="margin:10px;">
          <el-card style="width: 100%;" shadow="hover">
            <div>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="行政区划代码" prop="areaCode">
                    <el-input
                      v-model="dataForm.areaCode"
                      placeholder="行政区划代码"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="个人编码" prop="personalCode">
                    <el-input
                      v-model="dataForm.personalCode"
                      placeholder="个人编码"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="姓名" prop="name">
                    <el-input
                      v-model="dataForm.name"
                      placeholder="姓名"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="性别" prop="sex">
                    <el-select
                      v-model="dataForm.sex"
                      placeholder="性别"
                      :style="{ width: '80%' }"
                      @click.native="dataSex('SEX_GROUP')"
                    >
                      <el-option
                        v-for="item in sexList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="民族" prop="sex">
                    <el-select
                      v-model="dataForm.nation"
                      filterable
                      placeholder="民族"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('NATION')"
                    >
                      <el-option
                        v-for="item in nationList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="政治面貌" prop="politicalFace">
                    <el-select
                      v-model="dataForm.politicalFace"
                      placeholder="政治面貌"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('ZZMM')"
                    >
                      <el-option
                        v-for="item in politicalFaceList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>  
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="身份证号码" prop="idNo">
                    <el-input
                      v-model="dataForm.idNo"
                      placeholder="身份证号码"
                      :style="{ width: '80%' }"
                      @change="inputFunc(dataForm.idNo)"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="出生年月" prop="birthDate">
                    <el-date-picker
                      v-model="dataForm.birthDate"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="参加工作时间" prop="workTime">
                    <el-date-picker
                      v-model="dataForm.workTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                      @change="inputWork(dataForm.workTime)"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="人员分类" prop="personType">
                    <el-select
                      v-model="dataForm.personType"
                      placeholder="人员分类"
                      :style="{ width: '80%' }"
                      clearable
                      @change="dataRyfl($event, 'RYFL')"
                    >
                      <el-option
                        v-for="item in personTypeList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="退休前身份" prop="retirementStatus">
                    <el-select
                      v-model="dataForm.retirementStatus"
                      placeholder="退休前身份"
                      :style="{ width: '80%' }"
                      clearable
                      @change="dataArea($event, 'TXQSF')"
                    >
                      <el-option
                        v-for="item in retirementStatusList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="退休时职务" prop="duties">
                    <el-select
                      v-model="dataForm.duties"
                      placeholder="退休时职务"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataduty(dataForm.retirementStatus)"
                    >
                      <el-option
                        v-for="item in dutiesList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>  
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="安置区县" prop="county">
                    <el-select
                      v-model="dataForm.county"
                      placeholder="安置区县"
                      :style="{ width: '80%' }"
                      clearable
                      @change="dataArea($event, 'AREA')"
                    >
                      <el-option
                        v-for="item in countyList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="街道、乡镇" prop="street">
                    <el-select
                      v-model="dataForm.street"
                      filterable
                      placeholder="街道、乡镇"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataStreet(dataForm.county)"
                    >
                      <el-option
                        v-for="item in streetList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="居住社区" prop="community">
                    <el-input
                      v-model="dataForm.community"
                      placeholder="居住社区"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>  
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="原部队" prop="originalTroops">
                    <el-select
                      v-model="dataForm.originalTroops"
                      filterable
                      placeholder="原部队"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('YBD')"
                    >
                      <el-option
                        v-for="item in originalTroopsList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="移交时间段" prop="handoverPeriod">
                    <el-select
                      v-model="dataForm.handoverPeriod"
                      placeholder="移交时间段"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('YJSJD')"
                    >
                      <el-option
                        v-for="item in handoverPeriodList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="移交时间" prop="handoverTime">
                    <el-date-picker
                      v-model="dataForm.handoverTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
              </el-row>  
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="移交方式" prop="handoverMode">
                    <el-select
                      v-model="dataForm.handoverMode"
                      placeholder="移交方式"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('YJFS')"
                    >
                      <el-option
                        v-for="item in handoverModeList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="移交批次" prop="handoverBatch">
                    <el-select
                      v-model="dataForm.handoverBatch"
                      placeholder="移交批次"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('YJPC')"
                    >
                      <el-option
                        v-for="item in handoverBatchList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="职工分类" prop="workersClassification">
                    <el-select
                      v-model="dataForm.workersClassification"
                      placeholder="职工分类"
                      :style="{ width: '80%' }"
                      clearable
                     
                    >
                      <el-option
                        v-for="item in workersClassificationList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>  
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item
                    label="是否享受荣誉津贴"
                    prop="enjoyAllowance"
                    label-width="150px"
                  >
                    <el-select
                      v-model="dataForm.enjoyAllowance"
                      placeholder="是否享受荣誉津贴"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('SFXSRYJT')"
                    >
                      <el-option
                        v-for="item in enjoyAllowanceList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item
                    label="是否享受政府特殊津贴"
                    prop="specialAllowance"
                    label-width="180px"
                  >
                    <el-select
                      v-model="dataForm.specialAllowance"
                      placeholder="是否享受政府特殊津贴"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('SFXSZFTSJT')"
                    >
                      <el-option
                        v-for="item in specialAllowanceList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="接收情况" prop="reception">
                    <el-select
                      v-model="dataForm.reception"
                      placeholder="接收情况"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('JSQK')"
                    >
                      <el-option
                        v-for="item in receptionList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="转入转出时间" prop="inOutTime">
                    <el-date-picker
                      v-model="dataForm.inOutTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="本人状态" prop="myStatus">
                    <el-select
                      v-model="dataForm.myStatus"
                      placeholder="本人状态"
                      :style="{ width: '80%' }"
                      clearable
                      @change="dataBrzt($event, 'BRZT')"
                    >
                      <el-option
                        v-for="item in myStatusList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="死亡" prop="death">
                    <el-select
                      v-model="dataForm.death"
                      :style="{ width: '80%' }"
                      clearable
                      
                    >
                      <el-option
                        v-for="item in deathList"
                        :key="item.code"
                        :label="item.value"
                        :value="item.code"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="死亡时间" prop="deathTime">
                    <el-date-picker
                      v-model="dataForm.deathTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                      :disabled="deathTimeDisabled"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="注销日期" prop="logoutDate">
                    <el-date-picker
                      v-model="dataForm.logoutDate"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                      :disabled="logoutDateDisabled"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="退休时间" prop="retirementTime">
                    <el-date-picker
                      v-model="dataForm.retirementTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                      @change="retirement(dataForm.retirementTime)"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
              </el-row>
            </div>
          </el-card>
        </el-tab-pane>

        <el-tab-pane label="退休信息" name="second" style="margin:10px;">
          <el-card style="width: 100%;" shadow="hover">
            <div>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="待遇标准" prop="treatmentStandard">
                      <el-select
                        v-model="dataForm.treatmentStandard"
                        placeholder="待遇标准"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('DYBZ')"
                      >
                        <el-option
                          v-for="item in treatmentStandardList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="技术人员分类"
                      prop="personnelClassification"
                    >
                      <el-select
                        v-model="dataForm.personnelClassification"
                        placeholder="技术人员分类"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="
                          personnelClass(dataForm.retirementStatus)
                        "
                      >
                        <el-option
                          v-for="item in personnelClassificationList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="住房情况" prop="housingSituation">
                      <el-select
                        v-model="dataForm.housingSituation"
                        placeholder="住房情况"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('ZFQK')"
                      >
                        <el-option
                          v-for="item in housingSituationList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="住房产权" prop="housingPropertyRight">
                      <el-select
                        v-model="dataForm.housingPropertyRight"
                        placeholder="住房产权"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('ZFCQ')"
                      >
                        <el-option
                          v-for="item in housingPropertyRightList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="房屋产权（租赁）人"
                      prop="leaseholder"
                      label-width="140px"
                    >
                      <el-select
                        v-model="dataForm.leaseholder"
                        placeholder="房屋产权（租赁）人"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('FWZLR')"
                      >
                        <el-option
                          v-for="item in leaseholderList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="住房建筑面积" prop="housingArea">
                      <el-input
                        v-model="dataForm.housingArea"
                        placeholder="住房建筑面积"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="工作单位" prop="workUnit">
                      <el-input
                        v-model="dataForm.workUnit"
                        placeholder="工作单位"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="家庭住址" prop="address">
                      <el-input
                        v-model="dataForm.address"
                        placeholder="家庭住址"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="电话号码" prop="phone">
                      <el-input
                        v-model="dataForm.phone"
                        placeholder="电话号码"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="24">
                    <el-form-item label="备注" prop="remarks">
                      <el-input
                        type="textarea"
                        :autosize="{ minRows: 4, maxRows: 10 }"
                        v-model="dataForm.remarks"
                        placeholder="备注"
                        :style="{ width: '95%' }"
                      >
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20" >
                  <el-col :span="8">
                    <el-form-item label="军队工作年限" prop="workingYearsArmy">
                      <el-input
                        v-model="dataForm.workingYearsArmy"
                        placeholder="军队工作年限"
                        :style="{ width: '80%' }"
                        @mouseout.native="
                          armyWork(
                            dataForm.workingYearsArmy,
                            dataForm.workingYears
                          )
                        "
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="教龄" prop="teachingAge">
                      <el-input
                        v-model="dataForm.teachingAge"
                        placeholder="教龄"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="工作年限（工龄）"
                      prop="workingYears"
                      label-width="140px"
                    >
                      <el-input
                        v-model="dataForm.workingYears"
                        placeholder="工作年限"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="工龄余月" prop="yuYue">
                      <el-input
                        v-model="dataForm.yuYue"
                        placeholder="工龄余月"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="退休费计发比例"
                      prop="retirementFeeProportion"
                      label-width="140px"
                    >
                      <el-input
                        v-model="dataForm.retirementFeeProportion"
                        placeholder="基本退休费计发比例"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="提高比例部分"
                      prop="increaseProportion"
                    >
                      <el-input
                        v-model="dataForm.increaseProportion"
                        placeholder="提高比例部分"
                        :style="{ width: '80%' }"
                        @change="inProtion(dataForm.increaseProportion)"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="工资是否提高10%"
                      prop="isImprove"
                      label-width="140px"
                    >
                      <el-select
                        v-model="dataForm.isImprove"
                        placeholder="工资是否提高10%"
                        :style="{ width: '80%' }"
                        clearable
                        @change="dataImprove($event, 'GZSFTG')"
                      >
                        <el-option
                          v-for="item in isImproveList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="06工改后岗位级别"
                      prop="postLevel"
                      label-width="140px"
                    >
                      <el-select
                        v-model="dataForm.postLevel"
                        placeholder="06工改后岗位级别"
                        :style="{ width: '80%' }"
                        clearable
                        :disabled="postLevel"
                        @click.native="
                          postLevelClass(dataForm.retirementStatus)
                        "
                      >
                        <el-option
                          v-for="item in postLevelList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="薪级" prop="salary">
                      <el-input
                        v-model="dataForm.salary"
                        placeholder="薪级"
                        :style="{ width: '80%' }"
                        :disabled="salaryClass"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="奖金津贴比例" prop="allowanceRatio">
                      <el-select
                        v-model="dataForm.allowanceRatio"
                        placeholder="奖金津贴比例"
                        :style="{ width: '80%' }"
                        clearable
                        :disabled="allowanceRatioClass"
                        @click.native="dataSex('JJJTBL')"
                      >
                        <el-option
                          v-for="item in allowanceRatioList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="机关职员级别" prop="wageLevel">
                      <el-select
                        v-model="dataForm.wageLevel"
                        placeholder="机关职员级别"
                        :style="{ width: '80%' }"
                        clearable
                        :disabled="true"
                      >
                        <el-option
                          v-for="item in wageLevelList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="85-06工改工资档次"
                      prop="wageGrade"
                      label-width="140px"
                    >
                      <el-select
                        v-model="dataForm.wageGrade"
                        placeholder="85-06工改工资档次"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('GGGZDC')"
                        :disabled="wageGradeClass"
                      >
                        <el-option
                          v-for="item in wageGradeList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="提高比例原因" prop="renson">
                      <el-select
                        v-model="dataForm.renson"
                        placeholder="提高比例原因"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('TGBLYY')"
                        :disabled="rensonClass"
                      >
                        <el-option
                          v-for="item in rensonList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
          </el-card>
        </el-tab-pane>

        <el-tab-pane label="退休费基数" name="third" style="margin:10px;">
          <el-card style="width: 100%;" shadow="hover">
            <div>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="工资等级" prop="wageScale">
                    <el-input
                      v-model="dataForm.wageScale"
                      placeholder="工资等级"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
            </div>
          </el-card>  
          <el-card style="width: 100%;margin-top:20px;" shadow="hover">
            <div>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="薪级工资" prop="salaryScale">
                      <el-input
                        v-model="dataForm.salaryScale"
                        placeholder="薪级工资"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="岗位（级别）标准工资"
                      prop="gradeSalary"
                      label-width="155px"
                    >
                      <el-input
                        v-model="dataForm.gradeSalary"
                        placeholder="档次工资"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="基础工资" prop="basicSalary">
                      <el-input
                        v-model="dataForm.basicSalary"
                        placeholder="基础工资"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="工龄工资" prop="senioritySalary">
                      <el-input
                        v-model="dataForm.senioritySalary"
                        placeholder="工龄工资"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="提高工资10%" prop="raiseWages">
                      <el-input
                        v-model="dataForm.raiseWages"
                        placeholder="提高工资10%"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="级别工资" prop="levelSalary">
                      <el-input
                        v-model="dataForm.levelSalary"
                        placeholder="级别工资"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="军队服务津贴" prop="serviceAllowance">
                      <el-input
                        v-model="dataForm.serviceAllowance"
                        placeholder="军队服务津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="奖金津贴" prop="bonusAllowance">
                      <el-input
                        v-model="dataForm.bonusAllowance"
                        placeholder="奖金津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="困难补助" prop="difficultySubsidy">
                      <el-input
                        v-model="dataForm.difficultySubsidy"
                        placeholder="困难补助"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="教护龄津贴" prop="seniorityAllowance">
                      <el-input
                        v-model="dataForm.seniorityAllowance"
                        placeholder="教护龄津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="特教技师其它津贴"
                      prop="specialTeacherSubsidy"
                      label-width="155px"
                    >
                      <el-input
                        v-model="dataForm.specialTeacherSubsidy"
                        placeholder="特教技师其它津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="基本退休费折扣合计"
                      label-width="140px"
                    >
                      <el-input
                        v-model="this.resultA"
                        placeholder="基本退休费折扣合计"
                        :style="{ width: '80%' }"
                        disabled
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
          </el-card>
        </el-tab-pane>

        <el-tab-pane label="历次增加的退休费" name="fourth" style="margin:10px;">
          <el-card style="width: 100%;" shadow="hover">
            <div>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="1989年10月增加退休费"
                      prop="retirementPayEightynine"
                      label-width="170px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayEightynine"
                        placeholder="1989年10月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="1992年3月提高退休费10％"
                      prop="retirementPayNinetytwo"
                      label-width="180px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetytwo"
                        placeholder="1992年3月提高退休费10％"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="1995年10月增加退休费"
                      prop="retirementPayNinetyfive"
                      label-width="170px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetyfive"
                        placeholder="1995年10月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="1997年10月增加退休费"
                      prop="retirementPayNinetysesec"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetysesec"
                        placeholder="1997年10月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="1999年10月增加退休费"
                      prop="retirementPayNinetynisec"
                      label-width="170px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetynisec"
                        placeholder="1999年10月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="2001年10月增加退休费"
                      prop="retirementPayOnsec"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayOnsec"
                        placeholder="2001年10月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="2003年10月增加退休费"
                      prop="retirementPayThisec"
                      label-width="170px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayThisec"
                        placeholder="2003年10月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="2005年10月增加退休费"
                      prop="retirementPayFive"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayFive"
                        placeholder="2005年10月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
              </el-card>
              <el-card style="width: 100%;margin-top:20px;" shadow="hover">
              <div>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="1993年10月第一步增加退休费"
                      prop="retirementPayFirst"
                      label-width="200px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayFirst"
                        placeholder="1993年10月第一步增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="1993年10月第二步增加退休费"
                      prop="retirementPaySecond"
                      label-width="200px"
                    >
                      <el-input
                        v-model="dataForm.retirementPaySecond"
                        placeholder="1993年10月第二步增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="1997年7月增加退休费"
                      prop="retirementPayNinetyseven"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetyseven"
                        placeholder="1997年7月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="1999年7月增加退休费"
                      prop="retirementPayNinetynine"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetynine"
                        placeholder="1999年7月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="2001年1月增加退休费"
                      prop="retirementPayOne"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayOne"
                        placeholder="2001年1月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="2001年10月新增退休费"
                      prop="retirementPayOnenew"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayOnenew"
                        placeholder="2001年10月新增退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="2003年7月增加退休费"
                      prop="retirementPayThird"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayThird"
                        placeholder="2003年7月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="2006年7月增加退休费"
                      prop="retirementPaySix"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.retirementPaySix"
                        placeholder="2006年7月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="2014年10月增加退休费"
                      prop="retirementPayFourty"
                      label-width="170px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayFourty"
                        placeholder="2014年10月增加退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="历次增加的退休费合计"
                      prop="retirementPayFourty"
                      label-width="170px"
                    >
                      <el-input
                        v-model="this.resultB"
                        placeholder="历次增加的退休费合计"
                        :style="{ width: '80%' }"
                        disabled
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                </div>
              </el-card>
        </el-tab-pane>

        <el-tab-pane label="价格生活补贴" name="five" style="margin:10px;">
          <el-card
            style="width: 100%;"
            shadow="hover"
          >
            <div>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="1979年副食补贴"
                    prop="foodAllowanceSeventynine"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.foodAllowanceSeventynine"
                      placeholder="1979年副食补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="1988年副食补贴"
                    prop="foodAllowanceEightyeight"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.foodAllowanceEightyeight"
                      placeholder="1988年副食补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="1991年粮油补贴"
                    prop="oilAllowanceNightyone"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.oilAllowanceNightyone"
                      placeholder="1991年粮油补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="1992年粮油补贴"
                    prop="oilAllowanceNightytwo"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.oilAllowanceNightytwo"
                      placeholder="1992年粮油补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="1992年燃料补贴"
                    prop="fuelLlowance"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.fuelLlowance"
                      placeholder="1992年燃料补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="1992年蛋肉菜补贴"
                    prop="meatLlowance"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.meatLlowance"
                      placeholder="1992年蛋肉菜补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="1993年粮油补贴"
                    prop="oilAllowanceNightythird"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.oilAllowanceNightythird"
                      placeholder="1993年粮油补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="1985年生活补贴"
                    prop="livingAllowanceEightyfive"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceEightyfive"
                      placeholder="1985年生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="1988年生活补贴"
                    prop="livingAllowanceEightyei"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceEightyei"
                      placeholder="1988年生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="1992年生活补贴"
                    prop="livingAllowanceNightytw"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceNightytw"
                      placeholder="1992年生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="1994年生活补贴"
                    prop="livingAllowanceNightyfo"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceNightyfo"
                      placeholder="1994年生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="1995年生活补贴"
                    prop="livingAllowanceNightyfive"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceNightyfive"
                      placeholder="1995年生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="价格生活补贴合计"
                    prop="sumPrice"
                    label-width="150px"
                  >
                    <el-input
                      v-model="this.resultC"
                      placeholder="价格生活补贴合计"
                      :style="{ width: '80%' }"
                      disabled
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
            </div>
          </el-card>
        </el-tab-pane>

        <el-tab-pane label="增机制补贴及退休金" name="six" style="margin:10px">
            <el-card style="width: 100%; " shadow="hover">
              <div>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="2007年增加生活补贴"
                      prop="livingAllowanceSeven"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.livingAllowanceSeven"
                        placeholder="2007年增加生活补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2010年职务补贴"
                      prop="jobSubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.jobSubsidy"
                        placeholder="2010年职务补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2010年年龄补贴"
                      prop="ageAllowance"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.ageAllowance"
                        placeholder="2010年年龄补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="2011年退休补贴"
                      prop="retirementAllowanceOneo"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.retirementAllowanceOneo"
                        placeholder="2011年退休补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2012年工作年限补贴"
                      prop="workingYearsSubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.workingYearsSubsidy"
                        placeholder="2012年工作年限补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2012年提高比例补贴"
                      prop="proportionalSubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.proportionalSubsidy"
                        placeholder="2012年提高比例补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="2013年增长机制补贴"
                      prop="growthMechanismThirty"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.growthMechanismThirty"
                        placeholder="2013年增长机制补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2013年退休补贴"
                      prop="retirementAllowanceOneth"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.retirementAllowanceOneth"
                        placeholder="2013年退休补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2014年退休补贴"
                      prop="retirementAllowanceThirty"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.retirementAllowanceThirty"
                        placeholder="2014年退休补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="2016年增加养老金"
                      prop="pensionSixteen"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.pensionSixteen"
                        placeholder="2016年增加养老金"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2017年增加养老金"
                      prop="pensionSeventeen"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.pensionSeventeen"
                        placeholder="2017年增加养老金"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2018年增加养老金"
                      prop="pensionEighteen"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.pensionEighteen"
                        placeholder="2018年增加养老金"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="2019年增加养老金"
                      prop="pensionNineteen"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.pensionNineteen"
                        placeholder="2019年增加养老金"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2019年1月调整待遇"
                      prop="adjustTreatment"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.adjustTreatment"
                        placeholder="2019年1月调整待遇"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2020年增加养老金"
                      prop="pensionTwenty"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.pensionTwenty"
                        placeholder="2020年增加养老金"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="2021年增加养老金"
                      prop="pensionTwentyone"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.pensionTwentyone"
                        placeholder="2021年增加养老金"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2022年增加养老金"
                      prop="ext1"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.ext1"
                        placeholder="2022年增加养老金"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="增加生活机制（补贴）合计"
                      prop="pensionTwenty"
                      label-width="180px"
                    >
                      <el-input
                        v-model="this.resultF"
                        placeholder="增加生活机制（补贴）合计"
                        :style="{ width: '80%' }"
                        disabled
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="基本养老金合计"
                      prop="pensionTwentyone"
                      label-width="150px"
                    >
                      <el-input
                        v-model="this.resultK"
                        disabled
                        placeholder="基本养老金合计"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
            </el-card>
            <el-card style="width: 100%; margin-top: 20px; margin-bottom: 20px " shadow="hover">
              <div>  
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="书报费"
                      prop="paperMoney"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.paperMoney"
                        placeholder="书报费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="洗理费"
                      prop="bathSubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.bathSubsidy"
                        placeholder="洗理费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="住房补贴"
                      prop="housingSubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.housingSubsidy"
                        placeholder="住房补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="其它收入"
                      prop="otherIncome"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.otherIncome"
                        placeholder="其它收入"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="荣誉津贴"
                      prop="honorAllowance"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.honorAllowance"
                        placeholder="荣誉津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="物业服务补贴"
                      prop="serviceSubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.serviceSubsidy"
                        placeholder="物业服务补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="其它合计" label-width="150px">
                      <el-input
                        v-model="this.resultG"
                        disabled
                        placeholder="其它合计"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
            </el-card>  
            <el-card style="width: 100%; margin-top: 20px; margin-bottom: 20px  " shadow="hover">
              <div>  
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="四大节日补贴"
                      prop="holidaySubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.holidaySubsidy"
                        placeholder="四大节日补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="政府特殊津贴"
                      prop="specialGoveAllowanc"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.specialGoveAllowanc"
                        placeholder="政府特殊津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="采暖补贴"
                      prop="heatingSubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.heatingSubsidy"
                        placeholder="采暖补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
            </el-card>
            <el-card style="width: 100%; margin-top: 20px; margin-bottom: 20px  " shadow="hover">
              <div>  
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="自动生成退休费" label-width="150px">
                      <el-input
                        v-model="this.resultH"
                        disabled
                        placeholder="自动生成退休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="退休费的差额" label-width="150px">
                      <el-input
                        v-model="this.resultI"
                        disabled
                        placeholder="退休费的差额"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
            </el-card>
            <el-card style="width: 100%  " shadow="hover">
              <div>  
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="月退休金总额"
                      prop="totalMonthlyPension"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.totalMonthlyPension"
                        placeholder="月退休金总额"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="增加养老金"
                      prop="inPsion"
                      label-width="150px"
                    >
                      <el-input
                        v-model="this.inPsion"
                        disabled
                        placeholder="增加养老金"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
          </el-card>
        </el-tab-pane>
        <el-tab-pane label="归并信息" name="eight" style="margin:10px">
          <el-card style="width: 100%" shadow="hover">
            <div>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="1996年增加生活补贴"
                    prop="livingAllowanceNightysix"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceNightysix"
                      placeholder="1996年增加生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="1997年增加生活补贴"
                    prop="livingAllowanceNightysev"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceNightysev"
                      placeholder="1997年增加生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="1998年增加生活补贴"
                    prop="livingAllowanceNightyeig"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceNightyeig"
                      placeholder="1998年增加生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="1999年增加生活补贴"
                    prop="livingAllowanceNightynig"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceNightynig"
                      placeholder="1999年增加生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="2000年增加生活补贴"
                    prop="livingAllowanceZero"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceZero"
                      placeholder="2000年增加生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="2001年增加生活补贴"
                    prop="livingAllowanceOne"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceOne"
                      placeholder="2001年增加生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="2002年增加生活补贴"
                    prop="livingAllowanceTwo"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceTwo"
                      placeholder="2002年增加生活补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="2003年增加机制补贴"
                    prop="livingAllowanceThird"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceThird"
                      placeholder="2003年增加机制补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="2004年增加机制补贴"
                    prop="livingAllowanceFour"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.livingAllowanceFour"
                      placeholder="2004年增加机制补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="增加机制补贴合计" label-width="150px">
                    <el-input
                      v-model="this.resultD"
                      placeholder="增加机制补贴合计"
                      :style="{ width: '80%' }"
                      disabled
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
            </div>
          </el-card>
          <el-card
            style="width: 100%; margin-top: 20px; margin-bottom: 20px"
            shadow="hover"
          >
            <div>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="职务补贴"
                    prop="totalSubsidy"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.totalSubsidy"
                      placeholder="职务补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="折扣职务补贴" label-width="150px">
                    <el-input
                      v-model="this.resultE"
                      placeholder="折扣职务补贴"
                      :style="{ width: '80%' }"
                      disabled
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
            </div>
          </el-card>
          <el-card style="width: 100%;" shadow="hover">
            <div>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item
                    label="2000年1月增加退休费"
                    prop="retirementPayZero"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.retirementPayZero"
                      placeholder="2000年1月增加退休费"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item
                    label="2012年增长机制补贴"
                    prop="growthMechanismSubsidy"
                    label-width="150px"
                  >
                    <el-input
                      v-model="dataForm.growthMechanismSubsidy"
                      placeholder="2012年增长机制补贴"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
            </div>
          </el-card>
        </el-tab-pane>
      </el-tabs>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false" :style="{ display: visibleLine }">取消</el-button>
      <el-button type="primary" :style="{ display: visibleLine }" @click="dataFormSubmit()">确定</el-button>    
      <span v-if="this.dataForm.id"><el-button type="primary" @click="download()">查看退休费构成表</el-button></span>
      <span v-if="this.dataForm.id"><el-button type="primary" @click="txf()">预览退休费构成表</el-button></span>
      <span v-if="this.dataForm.id"><span v-if="this.dataForm.myStatus=='死亡' "><el-button type="primary" @click="downloadDeath()">查看抚恤金构成表</el-button></span></span>
      <span v-if="this.dataForm.id"><span v-if="this.dataForm.myStatus=='死亡' "><el-button type="primary" @click="fxj()">预览抚恤金构成表</el-button></span></span>
    </span>
    <div id="file" :style="{ display: sfxs }" ></div>
      <!-- <button v-print ="'#printTest'">打印</button> -->
      <TXF v-if="addOrUpdateVisible1" ref="TXF" ></TXF>
      <TXF2 v-if="addOrUpdateVisible2" ref="TXF2" ></TXF2>
      <TXF3 v-if="addOrUpdateVisible3" ref="TXF3" ></TXF3>
      <TXF4 v-if="addOrUpdateVisible4" ref="TXF4" ></TXF4>
      <TXF5 v-if="addOrUpdateVisible5" ref="TXF5" ></TXF5>
      <FXJA1 v-if="addOrUpdateFxjA1" ref="FXJA1" ></FXJA1>
      <FXJA2 v-if="addOrUpdateFxjA2" ref="FXJA2" ></FXJA2>
      <FXJA3 v-if="addOrUpdateFxjA3" ref="FXJA3" ></FXJA3>
      <FXJA4 v-if="addOrUpdateFxjA4" ref="FXJA4" ></FXJA4>
      <FXJA5 v-if="addOrUpdateFxjA5" ref="FXJA5" ></FXJA5>
      <FXJB1 v-if="addOrUpdateFxjB1" ref="FXJB1" ></FXJB1>
      <FXJB2 v-if="addOrUpdateFxjB2" ref="FXJB2" ></FXJB2>
      <FXJB3 v-if="addOrUpdateFxjB3" ref="FXJB3" ></FXJB3>
      <FXJB4 v-if="addOrUpdateFxjB4" ref="FXJB4" ></FXJB4>
      <FXJB5 v-if="addOrUpdateFxjB5" ref="FXJB5" ></FXJB5>
  </el-dialog>
</template>
<script>
import TXF from './txf1.vue'
import TXF2 from './txf2.vue'
import TXF3 from './txf3.vue'
import TXF4 from './txf4.vue'
import TXF5 from './txf5.vue'
import FXJA1 from './fxjA1.vue'
import FXJA2 from './fxjA2.vue'
import FXJA3 from './fxjA3.vue'
import FXJA4 from './fxjA4.vue'
import FXJA5 from './fxjA5.vue'
import FXJB1 from './fxjB1.vue'
import FXJB2 from './fxjB2.vue'
import FXJB3 from './fxjB3.vue'
import FXJB4 from './fxjB4.vue'
import FXJB5 from './fxjB5.vue'
import docxtemplater from 'docxtemplater';
import PizZip from 'pizzip';
import JSZipUtils from 'jszip-utils';
import { saveAs } from 'file-saver';
import axios from 'axios'
import print from 'vue-print-nb';
export default {
  data() {
    return {
      dataList: [],
      pageIndex: 1,
      pageSize: 10,
      totalPage: 0,
      logoutDateDisabled: false,
      addOrUpdateVisible1:false,
      addOrUpdateVisible2:false,
      addOrUpdateVisible3:false,
      addOrUpdateVisible4:false,
      addOrUpdateVisible5:false,
      addOrUpdateFxjA1:false,
      addOrUpdateFxjA2:false,
      addOrUpdateFxjA3:false,
      addOrUpdateFxjA4:false,
      addOrUpdateFxjA5:false,
      addOrUpdateFxjB1:false,
      addOrUpdateFxjB2:false,
      addOrUpdateFxjB3:false,
      addOrUpdateFxjB4:false,
      addOrUpdateFxjB5:false,
      deathDisabled: false,
      deathTimeDisabled: false,
      postLevel: false,
      salaryClass: false,
      allowanceRatioClass: false,
      wageGradeClass: false,
      rensonClass: false,
      sexList: [],
      workersClassificationList: [],
      countyList: [],
      streetList: [],
      nationList: [],
      politicalFaceList: [],
      retirementStatusList: [],
      dutiesList: [],
      originalTroopsList: [],
      handoverPeriodList: [],
      handoverModeList: [],
      handoverBatchList: [],
      enjoyAllowanceList: [],
      specialAllowanceList: [],
      receptionList: [],
      myStatusList: [],
      treatmentStandardList: [],
      personnelClassificationList: [],
      housingSituationList: [],
      housingPropertyRightList: [],
      leaseholderList: [],
      isImproveList: [],
      postLevelList: [],
      allowanceRatioList: [],
      wageGradeList: [],
      rensonList: [],
      wageLevelList: [],
      deathList: [],
      personTypeList: [],
      activeName: "first",
      visible: false,
      isTitle: "",
      isDisabled: false,
      visibleLine:"",
      isDisabled2:false,
      sfxs:"none",
      // printObj: {
      //   id: "printTest",
      //   popTitle: '打印的标题'
      //       },
      dataForm: {
        id: 0,
        areaCode: "",
        personalCode: "",
        name: "",
        sex: "",
        nation: "",
        politicalFace: "",
        idNo: "",
        birthDate: "",
        workTime: "",
        retirementTime: "",
        retirementStatus: "",
        duties: "",
        county: "",
        street: "",
        community: "",
        originalTroops: "",
        handoverPeriod: "",
        handoverTime: "",
        handoverMode: "",
        handoverBatch: "",
        workersClassification: "",
        reception: "",
        myStatus: "",
        inOutTime: "",
        deathTime: "",
        housingSituation: "",
        housingPropertyRight: "",
        leaseholder: "",
        housingArea: "",
        increasePension: "",
        totalMonthlyPension: "",
        death: "",
        workUnit: "",
        address: "",
        phone: "",
        remarks: "",
        workingYears: "",
        yuYue: "",
        workingYearsArmy: "",
        teachingAge: "",
        wageLevel: "",
        wageGrade: "",
        wageScale: "",
        treatmentStandard: "",
        personnelClassification: "",
        enjoyAllowance: "",
        specialAllowance: "",
        increaseProportion: "",
        renson: "",
        allowanceRatio: "",
        postLevel: "",
        salary: "",
        isImprove: "",
        retirementFeeProportion: "",
        senioritySalary: "",
        basicSalary: "",
        levelSalary: "",
        gradeSalary: "",
        salaryScale: "",
        bonusAllowance: "",
        serviceAllowance: "",
        seniorityAllowance: "",
        totalSubsidy: "",
        specialTeacherSubsidy: "",
        difficultySubsidy: "",
        raiseWages: "",
        retirementPayEightynine: "",
        retirementPayNinetytwo: "",
        retirementPayFirst: "",
        retirementPaySecond: "",
        retirementPayNinetyfive: "",
        retirementPayNinetyseven: "",
        retirementPayNinetysesec: "",
        retirementPayNinetynine: "",
        retirementPayNinetynisec: "",
        retirementPayZero: "",
        retirementPayOne: "",
        retirementPayOnenew: "",
        retirementPayOnsec: "",
        retirementPayThird: "",
        retirementPayThisec: "",
        retirementPayFive: "",
        retirementPaySix: "",
        foodAllowanceSeventynine: "",
        foodAllowanceEightyeight: "",
        oilAllowanceNightyone: "",
        oilAllowanceNightytwo: "",
        fuelLlowance: "",
        meatLlowance: "",
        oilAllowanceNightythird: "",
        livingAllowanceEightyfive: "",
        livingAllowanceEightyei: "",
        livingAllowanceNightytw: "",
        livingAllowanceNightyfo: "",
        livingAllowanceNightyfive: "",
        livingAllowanceNightysix: "",
        livingAllowanceNightysev: "",
        livingAllowanceNightyeig: "",
        livingAllowanceNightynig: "",
        livingAllowanceZero: "",
        livingAllowanceOne: "",
        livingAllowanceTwo: "",
        livingAllowanceThird: "",
        livingAllowanceFour: "",
        livingAllowanceSeven: "",
        specialGoveAllowanc: "",
        paperMoney: "",
        housingSubsidy: "",
        bathSubsidy: "",
        honorAllowance: "",
        otherIncome: "",
        jobSubsidy: "",
        ageAllowance: "",
        holidaySubsidy: "",
        retirementAllowanceOneo: "",
        growthMechanismSubsidy: "",
        workingYearsSubsidy: "",
        proportionalSubsidy: "",
        retirementAllowanceOneth: "",
        growthMechanismThirty: "",
        retirementAllowanceThirty: "",
        retirementPayFourty: "",
        logoutDate: "",
        heatingSubsidy: "",
        serviceSubsidy: "",
        pensionSixteen: "",
        pensionSeventeen: "",
        pensionEighteen: "",
        pensionNineteen: "",
        adjustTreatment: "",
        basicPension: "",
        pensionTwenty: "",
        pensionTwentyone: "",
        personType: "",
        ext1: ""
      },
      dataRule: {
        areaCode: [
          {
            pattern: /^[0-9]*$/,
            message: "请输入数字",
          },
        ],
        personalCode: [
          {
            pattern: /^[0-9]*$/,
            message: "请输入数字",
          },
        ],
        //   name: [
        //     { required: true, message: '姓名不能为空', trigger: 'blur' }
        //   ],
        //   sex: [
        //     { required: true, message: '性别不能为空', trigger: 'blur' }
        //   ],
        //   nation: [
        //     { required: true, message: '民族不能为空', trigger: 'blur' }
        //   ],
        //   politicalFace: [
        //     { required: true, message: '政治面目不能为空', trigger: 'blur' }
        //   ],
        idNo: [
          {
            pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
            message: "请输入正确的身份证号码",
          },
        ],
        //   birthDate: [
        //     { required: true, message: '出生年月不能为空', trigger: 'blur' }
        //   ],
        //   workTime: [
        //     { required: true, message: '参加工作时间不能为空', trigger: 'blur' }
        //   ],
        //   retirementTime: [
        //     { required: true, message: '退休时间不能为空', trigger: 'blur' }
        //   ],
        //   retirementStatus: [
        //     { required: true, message: '退休前身份不能为空', trigger: 'blur' }
        //   ],
        //   duties: [
        //     { required: true, message: '职务不能为空', trigger: 'blur' }
        //   ],
        //   county: [
        //     { required: true, message: '所属区县不能为空', trigger: 'blur' }
        //   ],
        //   street: [
        //     { required: true, message: '所属街道不能为空', trigger: 'blur' }
        //   ],
        //   community: [
        //     { required: true, message: '居住社区不能为空', trigger: 'blur' }
        //   ],
        //   originalTroops: [
        //     { required: true, message: '原部队不能为空', trigger: 'blur' }
        //   ],
        //   handoverPeriod: [
        //     { required: true, message: '移交时间段不能为空', trigger: 'blur' }
        //   ],
        //   handoverTime: [
        //     { required: true, message: '移交时间不能为空', trigger: 'blur' }
        //   ],
        //   handoverMode: [
        //     { required: true, message: '移交方式不能为空', trigger: 'blur' }
        //   ],
        //   handoverBatch: [
        //     { required: true, message: '移交批次不能为空', trigger: 'blur' }
        //   ],
        //   workersClassification: [
        //     { required: true, message: '职工分类不能为空', trigger: 'blur' }
        //   ],
        //   reception: [
        //     { required: true, message: '接收情况不能为空', trigger: 'blur' }
        //   ],
        //   myStatus: [
        //     { required: true, message: '本人状态不能为空', trigger: 'blur' }
        //   ],
        //   inOutTime: [
        //     { required: true, message: '转入转出时间不能为空', trigger: 'blur' }
        //   ],
        //   deathTime: [
        //     { required: true, message: '死亡时间不能为空', trigger: 'blur' }
        //   ],
        //   housingSituation: [
        //     { required: true, message: '住房情况不能为空', trigger: 'blur' }
        //   ],
        //   housingPropertyRight: [
        //     { required: true, message: '住房房产权不能为空', trigger: 'blur' }
        //   ],
        //   leaseholder: [
        //     { required: true, message: '租赁人不能为空', trigger: 'blur' }
        //   ],
        housingArea: [
          {
            pattern: /^[0-9]*$/,
            message: "请输入数字",
          },
        ],
        //   increasePension: [
        //     { required: true, message: '增加退休金不能为空', trigger: 'blur' }
        //   ],
        totalMonthlyPension: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        //   death: [
        //     { required: true, message: '死亡不能为空', trigger: 'blur' }
        //   ],
        //   workUnit: [
        //     { required: true, message: '工作单位不能为空', trigger: 'blur' }
        //   ],
        //   address: [
        //     { required: true, message: '家庭住址不能为空', trigger: 'blur' }
        //   ],
        //   phone: [
        //     { required: true, message: '电话号码不能为空', trigger: 'blur' }
        //   ],
        //   remarks: [
        //     { required: true, message: '备注不能为空', trigger: 'blur' }
        //   ],
        workingYears: [
          {
            pattern: /^[0-9]*$/,
            message: "请输入数字",
          },
        ],
        yuYue: [
          {
            pattern: /^[0-9]*$/,
            message: "请输入数字",
          },
        ],
        workingYearsArmy: [
          {
            pattern: /^[0-9]*$/,
            message: "请输入数字",
          },
        ],
        teachingAge: [
          {
            pattern: /^[0-9]*$/,
            message: "请输入数字",
          },
        ],
        //   wageLevel: [
        //     { required: true, message: '工资级别不能为空', trigger: 'blur' }
        //   ],
        //   wageGrade: [
        //     { required: true, message: '工资档次不能为空', trigger: 'blur' }
        //   ],
        //   wageScale: [
        //     { required: true, message: '工资等级不能为空', trigger: 'blur' }
        //   ],
        //   treatmentStandard: [
        //     { required: true, message: '待遇标准不能为空', trigger: 'blur' }
        //   ],
        //   personnelClassification: [
        //     { required: true, message: '技术人员分类不能为空', trigger: 'blur' }
        //   ],
        //   enjoyAllowance: [
        //     { required: true, message: '是否享受荣誉津贴不能为空', trigger: 'blur' }
        //   ],
        //   specialAllowance: [
        //     { required: true, message: '是否享受政府特殊津贴不能为空', trigger: 'blur' }
        //   ],
        increaseProportion: [
          {
            pattern: /^[0-9]*$/,
            message: "请输入数字",
          },
        ],
        //   renson: [
        //     { required: true, message: '提高比例原因不能为空', trigger: 'blur' }
        //   ],
        //   allowanceRatio: [
        //     { required: true, message: '奖金津贴比例不能为空', trigger: 'blur' }
        //   ],
        //   postLevel: [
        //     { required: true, message: '岗位级别不能为空', trigger: 'blur' }
        //   ],
        //   salary: [
        //     { required: true, message: '薪级不能为空', trigger: 'blur' }
        //   ],
        //   isImprove: [
        //     { required: true, message: '是否提高不能为空', trigger: 'blur' }
        //   ],
        retirementFeeProportion: [
          {
            pattern: /^[0-9]*$/,
            message: "请输入数字",
          },
        ],
        senioritySalary: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        basicSalary: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        levelSalary: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        gradeSalary: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        salaryScale: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        bonusAllowance: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        serviceAllowance: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        seniorityAllowance: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        totalSubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        specialTeacherSubsidy: [
          {
            pattern: /(^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d{1,3})?$)/,
            message: "请输入数值",
          },
        ],
        difficultySubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        raiseWages: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayEightynine: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayNinetytwo: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayFirst: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPaySecond: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayNinetyfive: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayNinetyseven: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayNinetysesec: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayNinetynine: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayNinetynisec: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayZero: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayOne: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayOnenew: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayOnsec: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayThird: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayThisec: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayFive: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPaySix: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        foodAllowanceSeventynine: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        foodAllowanceEightyeight: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        oilAllowanceNightyone: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        oilAllowanceNightytwo: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        fuelLlowance: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        meatLlowance: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        oilAllowanceNightythird: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceEightyfive: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceEightyei: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceNightytw: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceNightyfo: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceNightyfive: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceNightysix: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceNightysev: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceNightyeig: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceNightynig: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceZero: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceOne: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceTwo: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceThird: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceFour: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        livingAllowanceSeven: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        specialGoveAllowanc: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        paperMoney: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        housingSubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        bathSubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        honorAllowance: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        otherIncome: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        jobSubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        ageAllowance: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        holidaySubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementAllowanceOneo: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        growthMechanismSubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        workingYearsSubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        proportionalSubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementAllowanceOneth: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        growthMechanismThirty: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementAllowanceThirty: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        retirementPayFourty: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        //   logoutDate: [
        //     { required: true, message: '注销日期不能为空', trigger: 'blur' }
        //   ],
        heatingSubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        serviceSubsidy: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        pensionSixteen: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        pensionSeventeen: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        pensionEighteen: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        pensionNineteen: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        adjustTreatment: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        //   basicPension: [
        //     { required: true, message: '2019年基本养老金不能为空', trigger: 'blur' }
        //   ],
        pensionTwenty: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        pensionTwentyone: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
        ext1: [
          {
            pattern: /^\d*(\.\d{1,3})?$/,
            message: "请输入数值",
          },
        ],
      },
    };
  },
  components: {
      TXF,
      TXF2,
      TXF3,
      TXF4,
      TXF5,
      FXJA1,
      FXJA2,
      FXJA3,
      FXJA4,
      FXJA5,
      FXJB1,
      FXJB2,
      FXJB3,
      FXJB4,
      FXJB5
  },
  created() {

    this.dataForm.treatmentStandard = "事业单位标准";
    this.dataForm.handoverMode = "就地安置";
    this.dataForm.enjoyAllowance = "无";
    this.dataForm.specialAllowance = "否";
    this.dataForm.isImprove = "否";
    this.dataSex("SEX_GROUP");
    this.dataSex("EMPLOYEE");
    this.dataSex("AREA");
    this.dataSex("NATION");
    this.dataSex("ZZMM");
    this.dataSex("TXQSF");
    this.dataSex("YBD");
    this.dataSex("YJSJD");
    this.dataSex("YJFS");
    this.dataSex("YJPC");
    this.dataSex("SFXSRYJT");
    this.dataSex("SFXSZFTSJT");
    this.dataSex("JSQK");
    this.dataSex("BRZT");
    this.dataSex("DYBZ");
    this.dataSex("ZFQK");
    this.dataSex("ZFCQ");
    this.dataSex("FWZLR");
    this.dataSex("GZSFTG");
    this.dataSex("JJJTBL");
    this.dataSex("GGGZDC");
    this.dataSex("TGBLYY");
    this.dataSex("DEATH");
    this.dataSex("RYFL");
  },
  computed: {
    //退休费基数
    resultA() {
      //不计算比例
      let basicSalary = this.dataForm.basicSalary; //基础工资
      let senioritySalary = this.dataForm.senioritySalary; //工龄工资
      let seniorityAllowance = this.dataForm.seniorityAllowance; //教护龄津贴
      let difficultySubsidy = this.dataForm.difficultySubsidy; //困难补助
      let specialTeacherSubsidy = this.dataForm.specialTeacherSubsidy; //特级老师补贴
      //计算比例
      let salaryScale = this.dataForm.salaryScale; //薪级工资
      let raiseWages = this.dataForm.raiseWages; //提高工资10%
      let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴
      let gradeSalary = this.dataForm.gradeSalary; //岗位工资
      let levelSalary = this.dataForm.levelSalary; //级别工资
      let bonusAllowance = this.dataForm.bonusAllowance; //奖金津贴

      let txfjfbl = this.dataForm.retirementFeeProportion;//退休费计发比例
      let tgblbf = this.dataForm.increaseProportion;//提高比例部分
      let gzsftg = this.dataForm.isImprove//工资是否提高10%
      let gzsftgValue = '';
      if(txfjfbl === null || txfjfbl === "")
      {
        txfjfbl = 0;
      }
      if(tgblbf === null || tgblbf === "")
      {
        tgblbf = 0;
      }
      if(gzsftg == "是")
      {
          gzsftgValue = 10;
      }else{
        gzsftgValue = 0
      }
      txfjfbl = parseFloat(txfjfbl)+parseFloat(tgblbf)+parseFloat(gzsftgValue);
      
      let sumBasicRe = 0;
      if (salaryScale !== "" && salaryScale !== null) {
        sumBasicRe = sumBasicRe + parseFloat(salaryScale);
      }
      if (raiseWages !== "" && raiseWages !== null) {
        sumBasicRe = sumBasicRe + parseFloat(raiseWages);
      }
      if (serviceAllowance !== "" && serviceAllowance !== null) {
        sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
      }
      if (gradeSalary !== "" && gradeSalary !== null) {
        sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
      }
      if (levelSalary !== "" && levelSalary !== null) {
        sumBasicRe = sumBasicRe + parseFloat(levelSalary);
      }
      if (bonusAllowance !== "" && bonusAllowance !== null) {
        sumBasicRe = sumBasicRe + parseFloat(bonusAllowance);
      }
        let bl = parseFloat(txfjfbl)/100;
        //sumBasicRe = sumBasicRe * bl;
        sumBasicRe = sumBasicRe * bl;

     
      if (basicSalary !== "" && basicSalary !== null) {
        sumBasicRe = sumBasicRe + parseFloat(basicSalary);
      }
      if (difficultySubsidy !== "" && difficultySubsidy !== null) {
        sumBasicRe = sumBasicRe + parseFloat(difficultySubsidy);
      }
      if (senioritySalary !== "" && senioritySalary !== null) {
        sumBasicRe = sumBasicRe + parseFloat(senioritySalary);
      }
      if (seniorityAllowance !== "" && seniorityAllowance !== null) {
        sumBasicRe = sumBasicRe + parseFloat(seniorityAllowance);
      }
      if (specialTeacherSubsidy !== "" && specialTeacherSubsidy !== null) {
        sumBasicRe = sumBasicRe + parseFloat(specialTeacherSubsidy);
      }
      
      
      //return parseFloat(sumBasicRe).toFixed(2);
      return Math.ceil(sumBasicRe)
    },
    //历次增加的退休费合计
    resultB() {
      let retirementPayEightynine = this.dataForm.retirementPayEightynine; //1989年10月增加退休费
      let retirementPayNinetyfive = this.dataForm.retirementPayNinetyfive; //1995年10月增加退休费
      let retirementPayNinetynisec = this.dataForm.retirementPayNinetynisec; //1999年10月增加退休费
      let retirementPayThisec = this.dataForm.retirementPayThisec; //2003年10月增加退休费
      let retirementPayFirst = this.dataForm.retirementPayFirst; //1993年10月第一步增加退休费
      let retirementPayNinetyseven = this.dataForm.retirementPayNinetyseven; //1997年7月增加退休费
      let retirementPayOne = this.dataForm.retirementPayOne; //2001年1月增加退休费
      let retirementPayThird = this.dataForm.retirementPayThird; //2003年7月增加退休费
      let retirementPayFourty = this.dataForm.retirementPayFourty; //2014年10月增加退休费
      let retirementPayNinetytwo = this.dataForm.retirementPayNinetytwo; //1992年3月提高退休费10％
      let retirementPayNinetysesec = this.dataForm.retirementPayNinetysesec; //1997年10月增加退休费
      let retirementPayOnsec = this.dataForm.retirementPayOnsec; //2001年10月增加退休费
      let retirementPayFive = this.dataForm.retirementPayFive; //2005年10月增加退休费
      let retirementPaySecond = this.dataForm.retirementPaySecond; //1993年10月第二步增加退休费
      let retirementPayNinetynine = this.dataForm.retirementPayNinetynine; //1999年7月增加退休费
      let retirementPayOnenew = this.dataForm.retirementPayOnenew; //2001年10月新增退休费
      let retirementPaySix = this.dataForm.retirementPaySix; //2006年7月增加退休费
      let sumAddRe = 0;
      if (retirementPayEightynine !== "" && retirementPayEightynine !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayEightynine);
      }
      if (retirementPayNinetyfive !== "" && retirementPayNinetyfive !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetyfive);
      }
      if (retirementPayNinetynisec !== "" && retirementPayNinetynisec !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetynisec);
      }
      if (retirementPayThisec !== "" && retirementPayThisec !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayThisec);
      }
      if (retirementPayFirst !== "" && retirementPayFirst !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayFirst);
      }
      if (retirementPayNinetyseven !== "" && retirementPayNinetyseven !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetyseven);
      }
      if (retirementPayOne !== "" && retirementPayOne !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayOne);
      }
      if (retirementPayThird !== "" && retirementPayThird !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayThird);
      }
      if (retirementPayFourty !== "" && retirementPayFourty !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayFourty);
      }
      if (retirementPayNinetytwo !== "" && retirementPayNinetytwo !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetytwo);
      }
      if (retirementPayNinetysesec !== "" && retirementPayNinetysesec !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetysesec);
      }
      if (retirementPayOnsec !== "" && retirementPayOnsec !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayOnsec);
      }
      if (retirementPayFive !== "" && retirementPayFive !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayFive);
      }
      if (retirementPaySecond !== "" && retirementPaySecond !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPaySecond);
      }
      if (retirementPayNinetynine !== "" && retirementPayNinetynine !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetynine);
      }
      if (retirementPayOnenew !== "" && retirementPayOnenew !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayOnenew);
      }
      if (retirementPaySix !== "" && retirementPaySix !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPaySix);
      }
      return parseFloat(sumAddRe).toFixed(2);
    },
    //价格生活补贴合计
    resultC() {
      let foodAllowanceSeventynine = this.dataForm.foodAllowanceSeventynine; //1979年副食补贴
      let oilAllowanceNightyone = this.dataForm.oilAllowanceNightyone; //1991年粮油补贴
      let fuelLlowance = this.dataForm.fuelLlowance; //1992年燃料补贴
      let oilAllowanceNightythird = this.dataForm.oilAllowanceNightythird; //1993年粮油补贴
      let livingAllowanceEightyei = this.dataForm.livingAllowanceEightyei; //1988年生活补贴
      let livingAllowanceNightyfo = this.dataForm.livingAllowanceNightyfo; //1994年生活补贴
      let foodAllowanceEightyeight = this.dataForm.foodAllowanceEightyeight; //1988年副食补贴
      let oilAllowanceNightytwo = this.dataForm.oilAllowanceNightytwo; //1992年粮油补贴
      let meatLlowance = this.dataForm.meatLlowance; //1992年蛋肉菜补贴
      let livingAllowanceEightyfive = this.dataForm.livingAllowanceEightyfive; //1985年生活补贴
      let livingAllowanceNightytw = this.dataForm.livingAllowanceNightytw; //1992年生活补贴
      let livingAllowanceNightyfive = this.dataForm.livingAllowanceNightyfive; //1995年生活补贴
      let sumPrice = 0;
      if (foodAllowanceSeventynine !== "" && foodAllowanceSeventynine !== null) {
        sumPrice = sumPrice + parseFloat(foodAllowanceSeventynine);
      }
      if (oilAllowanceNightyone !== "" && oilAllowanceNightyone !== null) {
        sumPrice = sumPrice + parseFloat(oilAllowanceNightyone);
      }
      if (fuelLlowance !== "" && fuelLlowance !== null) {
        sumPrice = sumPrice + parseFloat(fuelLlowance);
      }
      if (oilAllowanceNightythird !== "" && oilAllowanceNightythird !== null) {
        sumPrice = sumPrice + parseFloat(oilAllowanceNightythird);
      }
      if (livingAllowanceEightyei !== "" && livingAllowanceEightyei !== null) {
        sumPrice = sumPrice + parseFloat(livingAllowanceEightyei);
      }
      if (livingAllowanceNightyfo !== "" && livingAllowanceNightyfo !== null) {
        sumPrice = sumPrice + parseFloat(livingAllowanceNightyfo);
      }
      if (foodAllowanceEightyeight !== "" && foodAllowanceEightyeight !== null) {
        sumPrice = sumPrice + parseFloat(foodAllowanceEightyeight);
      }
      if (oilAllowanceNightytwo !== "" && oilAllowanceNightytwo !== null) {
        sumPrice = sumPrice + parseFloat(oilAllowanceNightytwo);
      }
      if (meatLlowance !== "" && meatLlowance !== null) {
        sumPrice = sumPrice + parseFloat(meatLlowance);
      }
      if (livingAllowanceEightyfive !== "" && livingAllowanceEightyfive !== null) {
        sumPrice = sumPrice + parseFloat(livingAllowanceEightyfive);
      }
      if (livingAllowanceNightytw !== "" && livingAllowanceNightytw !== null) {
        sumPrice = sumPrice + parseFloat(livingAllowanceNightytw);
      }
      if (livingAllowanceNightyfive !== "" && livingAllowanceNightyfive !== null) {
        sumPrice = sumPrice + parseFloat(livingAllowanceNightyfive);
      }
      return parseFloat(sumPrice).toFixed(2);
    },
    //增加机制补贴合计
    resultD() {
      let livingAllowanceNightysix = this.dataForm.livingAllowanceNightysix; //1996年增加生活补贴
      let livingAllowanceNightysev = this.dataForm.livingAllowanceNightysev; //1997年增加生活补贴
      let livingAllowanceNightyeig = this.dataForm.livingAllowanceNightyeig; //1998年增加生活补贴
      let livingAllowanceNightynig = this.dataForm.livingAllowanceNightynig; //1999年增加生活补贴
      let livingAllowanceZero = this.dataForm.livingAllowanceZero; //2000年增加生活补贴
      let livingAllowanceOne = this.dataForm.livingAllowanceOne; //2001年增加生活补贴
      let livingAllowanceTwo = this.dataForm.livingAllowanceTwo; //2002年增加生活补贴
      let livingAllowanceThird = this.dataForm.livingAllowanceThird; //2003年增加机制补贴
      let livingAllowanceFour = this.dataForm.livingAllowanceFour; //2004年增加机制补贴
      let sumMechanism = 0;
      if (livingAllowanceNightysix !== "" && livingAllowanceNightysix !== null) {
        sumMechanism = sumMechanism + parseFloat(livingAllowanceNightysix);
      }
      if (livingAllowanceNightysev !== "" && livingAllowanceNightysev !== null) {
        sumMechanism = sumMechanism + parseFloat(livingAllowanceNightysev);
      }
      if (livingAllowanceNightyeig !== "" && livingAllowanceNightyeig !== null) {
        sumMechanism = sumMechanism + parseFloat(livingAllowanceNightyeig);
      }
      if (livingAllowanceNightynig !== "" && livingAllowanceNightynig !== null) {
        sumMechanism = sumMechanism + parseFloat(livingAllowanceNightynig);
      }
      if (livingAllowanceZero !== "" && livingAllowanceZero !== null) {
        sumMechanism = sumMechanism + parseFloat(livingAllowanceZero);
      }
      if (livingAllowanceOne !== "" && livingAllowanceOne !== null) {
        sumMechanism = sumMechanism + parseFloat(livingAllowanceOne);
      }
      if (livingAllowanceTwo !== "" && livingAllowanceTwo !== null) {
        sumMechanism = sumMechanism + parseFloat(livingAllowanceTwo);
      }
      if (livingAllowanceThird !== "" && livingAllowanceThird !== null) {
        sumMechanism = sumMechanism + parseFloat(livingAllowanceThird);
      }
      if (livingAllowanceFour !== "" && livingAllowanceFour !== null) {
        sumMechanism = sumMechanism + parseFloat(livingAllowanceFour);
      }
      return parseFloat(sumMechanism).toFixed(2);
    },
    //折扣职务补贴
    resultE() {
      let txfjfbl = this.dataForm.retirementFeeProportion;//退休费计发比例
      if(txfjfbl === null || txfjfbl === "")
      {
        txfjfbl = 0;
      }
      let bl = parseFloat(txfjfbl)/100;
      
      let totalSubsidy = this.dataForm.totalSubsidy; //职务补贴
      let sumDiscount = 0;
      if (totalSubsidy !== "" && totalSubsidy !== null) {
        sumDiscount = parseFloat(totalSubsidy) * bl;
        sumDiscount = Math.ceil(sumDiscount);
      }
      return parseFloat(sumDiscount).toFixed(2);
    },
    //增加养老金
    inPsion() {
      //let pensionTwentyone = this.dataForm.pensionTwentyone; //2021年增加养老金
      let ext1 = this.dataForm.ext1;//2022年增加养老金
      let inPsion = 0;
      if (ext1 !== "" && ext1 !== null) {
        inPsion = ext1;
      }
      return inPsion;
    },
    //增加生活机制（补贴）合计
    resultF() {
      let livingAllowanceSeven = this.dataForm.livingAllowanceSeven; //2007年增加生活补贴
      let jobSubsidy = this.dataForm.jobSubsidy; //2010年职务补贴
      let ageAllowance = this.dataForm.ageAllowance; //2010年年龄补贴
      let retirementAllowanceOneo = this.dataForm.retirementAllowanceOneo; //2011年退休补贴
      let workingYearsSubsidy = this.dataForm.workingYearsSubsidy; //2012年工作年限补贴
      let proportionalSubsidy = this.dataForm.proportionalSubsidy; //2012年提高比例补贴
      let growthMechanismThirty = this.dataForm.growthMechanismThirty; //2013年增长机制补贴
      let retirementAllowanceOneth = this.dataForm.retirementAllowanceOneth; //2013年退休补贴
      //let basicPension = this.dataForm.basicPension;//2019年基本养老金
      let retirementAllowanceThirty = this.dataForm.retirementAllowanceThirty; //2014年退休补贴
      let pensionSixteen = this.dataForm.pensionSixteen; //2016年增加养老金
      let pensionSeventeen = this.dataForm.pensionSeventeen; //2017年增加养老金
      let pensionEighteen = this.dataForm.pensionEighteen; //2018年增加养老金
      let pensionNineteen = this.dataForm.pensionNineteen; //2019年增加养老金
      let adjustTreatment = this.dataForm.adjustTreatment; //2019年1月调整待遇
      let pensionTwenty = this.dataForm.pensionTwenty; //2020年增加养老金
      let pensionTwentyone = this.dataForm.pensionTwentyone; //2021年增加养老金
      let ext1 = this.dataForm.ext1;//2022年增加养老金
      let sumMeleft = 0;
      if (livingAllowanceSeven !== "" && livingAllowanceSeven !== null) {
        sumMeleft = sumMeleft + parseFloat(livingAllowanceSeven);
      }
      if (jobSubsidy !== "" && jobSubsidy !== null) {
        sumMeleft = sumMeleft + parseFloat(jobSubsidy);
      }
      if (ageAllowance !== "" && ageAllowance !== null) {
        sumMeleft = sumMeleft + parseFloat(ageAllowance);
      }
      if (retirementAllowanceOneo !== "" && retirementAllowanceOneo !== null) {
        sumMeleft = sumMeleft + parseFloat(retirementAllowanceOneo);
      }
      if (workingYearsSubsidy !== "" && workingYearsSubsidy !== null) {
        sumMeleft = sumMeleft + parseFloat(workingYearsSubsidy);
      }
      if (proportionalSubsidy !== "" && proportionalSubsidy !== null) {
        sumMeleft = sumMeleft + parseFloat(proportionalSubsidy);
      }
      if (growthMechanismThirty !== "" && growthMechanismThirty !== null) {
        sumMeleft = sumMeleft + parseFloat(growthMechanismThirty);
      }
      if (retirementAllowanceOneth !== "" && retirementAllowanceOneth !== null) {
        sumMeleft = sumMeleft + parseFloat(retirementAllowanceOneth);
      }
      if (retirementAllowanceThirty !== "" && retirementAllowanceThirty !== null) {
        sumMeleft = sumMeleft + parseFloat(retirementAllowanceThirty);
      }
      if (pensionSixteen !== "" && pensionSixteen !== null) {
        sumMeleft = sumMeleft + parseFloat(pensionSixteen);
      }
      if (pensionSeventeen !== "" && pensionSeventeen !== null) {
        sumMeleft = sumMeleft + parseFloat(pensionSeventeen);
      }
      if (pensionEighteen !== "" && pensionEighteen !== null) {
        sumMeleft = sumMeleft + parseFloat(pensionEighteen);
      }
      if (pensionNineteen !== "" && pensionNineteen !== null) {
        sumMeleft = sumMeleft + parseFloat(pensionNineteen);
      }
      if (adjustTreatment !== "" && adjustTreatment !== null) {
        sumMeleft = sumMeleft + parseFloat(adjustTreatment);
      }
      if (pensionTwenty !== "" && pensionTwenty !== null) {
        sumMeleft = sumMeleft + parseFloat(pensionTwenty);
      }
      if (pensionTwentyone !== "" && pensionTwentyone !== null) {
        sumMeleft = sumMeleft + parseFloat(pensionTwentyone);
      }
      if (ext1 !== "" && ext1 !== null) {
        sumMeleft = sumMeleft + parseFloat(ext1);
      }
      return parseFloat(sumMeleft).toFixed(2);
    },
    //其它合计
    resultG() {
      let paperMoney = this.dataForm.paperMoney; //书报费
      let bathSubsidy = this.dataForm.bathSubsidy; //洗理费
      let housingSubsidy = this.dataForm.housingSubsidy; //住房补贴
      let otherIncome = this.dataForm.otherIncome; //其它收入
      let honorAllowance = this.dataForm.honorAllowance; //荣誉津贴
      let serviceSubsidy = this.dataForm.serviceSubsidy; //物业服务补贴
      let sumOther = 0;
      if (paperMoney !== "" && paperMoney !== null) {
        sumOther = sumOther + parseFloat(paperMoney);
      }
      if (bathSubsidy !== "" && bathSubsidy !== null) {
        sumOther = sumOther + parseFloat(bathSubsidy);
      }
      if (housingSubsidy !== "" && housingSubsidy !== null) {
        sumOther = sumOther + parseFloat(housingSubsidy);
      }
      if (otherIncome !== "" && otherIncome !== null) {
        sumOther = sumOther + parseFloat(otherIncome);
      }
      if (honorAllowance !== "" && honorAllowance !== null) {
        sumOther = sumOther + parseFloat(honorAllowance);
      }
      if (serviceSubsidy !== "" && serviceSubsidy !== null) {
        sumOther = sumOther + parseFloat(serviceSubsidy);
      }
      return parseFloat(sumOther).toFixed(2);
    },
    //自动生成退休费
    resultH() {
      let resultA = this.resultA;
      let resultB = this.resultB;
      let resultC = this.resultC;
      let resultF = this.resultF;
      let resultG = this.resultG;
      let sum = 0;
      if (resultA !== "" && resultA !== null) {
        sum = sum + parseFloat(resultA);
      }
      if (resultB !== "" && resultB !== null) {
        sum = sum + parseFloat(resultB);
      }
      if (resultC !== "" && resultC !== null) {
        sum = sum + parseFloat(resultC);
      }
      if (resultF !== "" && resultF !== null) {
        sum = sum + parseFloat(resultF);
      }
      if (resultG !== "" && resultG !== null) {
        sum = sum + parseFloat(resultG);
      }
      return sum;
    },
    //退休费的差额
    resultI() {
      let resultH = this.resultH;
      let totalMonthlyPension = this.dataForm.totalMonthlyPension;
      let sum = 0;
      if (resultH !== "" && resultH !== null && totalMonthlyPension !== "" && totalMonthlyPension !== null ) {
        sum = parseFloat(resultH) - parseFloat(totalMonthlyPension);
      }
      return parseFloat(sum).toFixed(2);
    },
    //基本养老金合计
    resultK() {
      ///let resultH = this.resultH;
      let totalMonthlyPension = this.dataForm.totalMonthlyPension;
      let serviceSubsidy = this.dataForm.serviceSubsidy; //物业服务补贴

      let sum = 0;
      if (totalMonthlyPension !== "" && totalMonthlyPension !== null && serviceSubsidy !== "" && serviceSubsidy !== null) {
        sum = parseFloat(totalMonthlyPension) - parseFloat(serviceSubsidy);
      }
      return parseFloat(sum).toFixed(2);
    },
  },

  methods: {
    openChangeTital() {
      if (this.dataForm.id == 0) {
        this.isTitle = "新增";
      } else if (this.isDisabled) {
        this.isTitle = "查看";
      } else {
        this.isTitle = "修改";
      }
    },
    viewShow(id){
      this.dataForm.id = id || 0;
      this.visible = true;
      this.$nextTick(() => {
        this.$refs["dataForm"].resetFields();
        if (this.dataForm.id) {
          this.$http({
            url: this.$http.adornUrl(
              `/jxxm/retiredemployees/info/${this.dataForm.id}`
            ),
            method: "get",
            params: this.$http.adornParams(),
          }).then(({ data }) => {
            if (data && data.code === 0) {
              this.dataForm.areaCode = data.retiredEmployees.areaCode;
              this.dataForm.personalCode = data.retiredEmployees.personalCode;
              this.dataForm.name = data.retiredEmployees.name;
              this.dataForm.sex = data.retiredEmployees.sex;
              this.dataForm.nation = data.retiredEmployees.nation;
              this.dataForm.politicalFace = data.retiredEmployees.politicalFace;
              this.dataForm.idNo = data.retiredEmployees.idNo;
              this.dataForm.birthDate = data.retiredEmployees.birthDate;
              this.dataForm.workTime = data.retiredEmployees.workTime;
              this.dataForm.retirementTime =
                data.retiredEmployees.retirementTime;
              this.dataForm.retirementStatus =
                data.retiredEmployees.retirementStatus;
              this.dataForm.duties = data.retiredEmployees.duties;
              this.dataForm.county = data.retiredEmployees.county;
              this.dataForm.street = data.retiredEmployees.street;
              this.dataForm.community = data.retiredEmployees.community;
              this.dataForm.originalTroops =
                data.retiredEmployees.originalTroops;
              this.dataForm.handoverPeriod =
                data.retiredEmployees.handoverPeriod;
              this.dataForm.handoverTime = data.retiredEmployees.handoverTime;
              this.dataForm.handoverMode = data.retiredEmployees.handoverMode;
              this.dataForm.handoverBatch = data.retiredEmployees.handoverBatch;
              this.dataForm.workersClassification =
                data.retiredEmployees.workersClassification;
              this.dataForm.reception = data.retiredEmployees.reception;
              this.dataForm.myStatus = data.retiredEmployees.myStatus;
              this.dataForm.inOutTime = data.retiredEmployees.inOutTime;
              this.dataForm.deathTime = data.retiredEmployees.deathTime;
              this.dataForm.housingSituation =
                data.retiredEmployees.housingSituation;
              this.dataForm.housingPropertyRight =
                data.retiredEmployees.housingPropertyRight;
              this.dataForm.leaseholder = data.retiredEmployees.leaseholder;
              this.dataForm.housingArea = data.retiredEmployees.housingArea;
              this.dataForm.increasePension =
                data.retiredEmployees.increasePension;
              this.dataForm.totalMonthlyPension =
                data.retiredEmployees.totalMonthlyPension;
              this.dataForm.death = data.retiredEmployees.death;
              this.dataForm.workUnit = data.retiredEmployees.workUnit;
              this.dataForm.address = data.retiredEmployees.address;
              this.dataForm.phone = data.retiredEmployees.phone;
              this.dataForm.remarks = data.retiredEmployees.remarks;
              this.dataForm.workingYears = data.retiredEmployees.workingYears;
              this.dataForm.yuYue = data.retiredEmployees.yuYue;
              this.dataForm.workingYearsArmy =
                data.retiredEmployees.workingYearsArmy;
              this.dataForm.teachingAge = data.retiredEmployees.teachingAge;
              this.dataForm.wageLevel = data.retiredEmployees.wageLevel;
              this.dataForm.wageGrade = data.retiredEmployees.wageGrade;
              this.dataForm.wageScale = data.retiredEmployees.wageScale;
              this.dataForm.treatmentStandard =
                data.retiredEmployees.treatmentStandard;
              this.dataForm.personnelClassification =
                data.retiredEmployees.personnelClassification;
              this.dataForm.enjoyAllowance =
                data.retiredEmployees.enjoyAllowance;
              this.dataForm.specialAllowance =
                data.retiredEmployees.specialAllowance;
              this.dataForm.increaseProportion =
                data.retiredEmployees.increaseProportion;
              this.dataForm.renson = data.retiredEmployees.renson;
              this.dataForm.allowanceRatio =
                data.retiredEmployees.allowanceRatio;
              this.dataForm.postLevel = data.retiredEmployees.postLevel;
              this.dataForm.salary = data.retiredEmployees.salary;
              this.dataForm.isImprove = data.retiredEmployees.isImprove;
              this.dataForm.retirementFeeProportion =
                data.retiredEmployees.retirementFeeProportion;
              this.dataForm.senioritySalary =
                data.retiredEmployees.senioritySalary;
              this.dataForm.basicSalary = data.retiredEmployees.basicSalary;
              this.dataForm.levelSalary = data.retiredEmployees.levelSalary;
              this.dataForm.gradeSalary = data.retiredEmployees.gradeSalary;
              this.dataForm.salaryScale = data.retiredEmployees.salaryScale;
              this.dataForm.bonusAllowance =
                data.retiredEmployees.bonusAllowance;
              this.dataForm.serviceAllowance =
                data.retiredEmployees.serviceAllowance;
              this.dataForm.seniorityAllowance =
                data.retiredEmployees.seniorityAllowance;
              this.dataForm.totalSubsidy = data.retiredEmployees.totalSubsidy;
              this.dataForm.specialTeacherSubsidy =
                data.retiredEmployees.specialTeacherSubsidy;
              this.dataForm.difficultySubsidy =
                data.retiredEmployees.difficultySubsidy;
              this.dataForm.raiseWages = data.retiredEmployees.raiseWages;
              this.dataForm.retirementPayEightynine =
                data.retiredEmployees.retirementPayEightynine;
              this.dataForm.retirementPayNinetytwo =
                data.retiredEmployees.retirementPayNinetytwo;
              this.dataForm.retirementPayFirst =
                data.retiredEmployees.retirementPayFirst;
              this.dataForm.retirementPaySecond =
                data.retiredEmployees.retirementPaySecond;
              this.dataForm.retirementPayNinetyfive =
                data.retiredEmployees.retirementPayNinetyfive;
              this.dataForm.retirementPayNinetyseven =
                data.retiredEmployees.retirementPayNinetyseven;
              this.dataForm.retirementPayNinetysesec =
                data.retiredEmployees.retirementPayNinetysesec;
              this.dataForm.retirementPayNinetynine =
                data.retiredEmployees.retirementPayNinetynine;
              this.dataForm.retirementPayNinetynisec =
                data.retiredEmployees.retirementPayNinetynisec;
              this.dataForm.retirementPayZero =
                data.retiredEmployees.retirementPayZero;
              this.dataForm.retirementPayOne =
                data.retiredEmployees.retirementPayOne;
              this.dataForm.retirementPayOnenew =
                data.retiredEmployees.retirementPayOnenew;
              this.dataForm.retirementPayOnsec =
                data.retiredEmployees.retirementPayOnsec;
              this.dataForm.retirementPayThird =
                data.retiredEmployees.retirementPayThird;
              this.dataForm.retirementPayThisec =
                data.retiredEmployees.retirementPayThisec;
              this.dataForm.retirementPayFive =
                data.retiredEmployees.retirementPayFive;
              this.dataForm.retirementPaySix =
                data.retiredEmployees.retirementPaySix;
              this.dataForm.foodAllowanceSeventynine =
                data.retiredEmployees.foodAllowanceSeventynine;
              this.dataForm.foodAllowanceEightyeight =
                data.retiredEmployees.foodAllowanceEightyeight;
              this.dataForm.oilAllowanceNightyone =
                data.retiredEmployees.oilAllowanceNightyone;
              this.dataForm.oilAllowanceNightytwo =
                data.retiredEmployees.oilAllowanceNightytwo;
              this.dataForm.fuelLlowance = data.retiredEmployees.fuelLlowance;
              this.dataForm.meatLlowance = data.retiredEmployees.meatLlowance;
              this.dataForm.oilAllowanceNightythird =
                data.retiredEmployees.oilAllowanceNightythird;
              this.dataForm.livingAllowanceEightyfive =
                data.retiredEmployees.livingAllowanceEightyfive;
              this.dataForm.livingAllowanceEightyei =
                data.retiredEmployees.livingAllowanceEightyei;
              this.dataForm.livingAllowanceNightytw =
                data.retiredEmployees.livingAllowanceNightytw;
              this.dataForm.livingAllowanceNightyfo =
                data.retiredEmployees.livingAllowanceNightyfo;
              this.dataForm.livingAllowanceNightyfive =
                data.retiredEmployees.livingAllowanceNightyfive;
              this.dataForm.livingAllowanceNightysix =
                data.retiredEmployees.livingAllowanceNightysix;
              this.dataForm.livingAllowanceNightysev =
                data.retiredEmployees.livingAllowanceNightysev;
              this.dataForm.livingAllowanceNightyeig =
                data.retiredEmployees.livingAllowanceNightyeig;
              this.dataForm.livingAllowanceNightynig =
                data.retiredEmployees.livingAllowanceNightynig;
              this.dataForm.livingAllowanceZero =
                data.retiredEmployees.livingAllowanceZero;
              this.dataForm.livingAllowanceOne =
                data.retiredEmployees.livingAllowanceOne;
              this.dataForm.livingAllowanceTwo =
                data.retiredEmployees.livingAllowanceTwo;
              this.dataForm.livingAllowanceThird =
                data.retiredEmployees.livingAllowanceThird;
              this.dataForm.livingAllowanceFour =
                data.retiredEmployees.livingAllowanceFour;
              this.dataForm.livingAllowanceSeven =
                data.retiredEmployees.livingAllowanceSeven;
              this.dataForm.specialGoveAllowanc =
                data.retiredEmployees.specialGoveAllowanc;
              this.dataForm.paperMoney = data.retiredEmployees.paperMoney;
              this.dataForm.housingSubsidy =
                data.retiredEmployees.housingSubsidy;
              this.dataForm.bathSubsidy = data.retiredEmployees.bathSubsidy;
              this.dataForm.honorAllowance =
                data.retiredEmployees.honorAllowance;
              this.dataForm.otherIncome = data.retiredEmployees.otherIncome;
              this.dataForm.jobSubsidy = data.retiredEmployees.jobSubsidy;
              this.dataForm.ageAllowance = data.retiredEmployees.ageAllowance;
              this.dataForm.holidaySubsidy =
                data.retiredEmployees.holidaySubsidy;
              this.dataForm.retirementAllowanceOneo =
                data.retiredEmployees.retirementAllowanceOneo;
              this.dataForm.growthMechanismSubsidy =
                data.retiredEmployees.growthMechanismSubsidy;
              this.dataForm.workingYearsSubsidy =
                data.retiredEmployees.workingYearsSubsidy;
              this.dataForm.proportionalSubsidy =
                data.retiredEmployees.proportionalSubsidy;
              this.dataForm.retirementAllowanceOneth =
                data.retiredEmployees.retirementAllowanceOneth;
              this.dataForm.growthMechanismThirty =
                data.retiredEmployees.growthMechanismThirty;
              this.dataForm.retirementAllowanceThirty =
                data.retiredEmployees.retirementAllowanceThirty;
              this.dataForm.retirementPayFourty =
                data.retiredEmployees.retirementPayFourty;
              this.dataForm.logoutDate = data.retiredEmployees.logoutDate;
              this.dataForm.heatingSubsidy =
                data.retiredEmployees.heatingSubsidy;
              this.dataForm.serviceSubsidy =
                data.retiredEmployees.serviceSubsidy;
              this.dataForm.pensionSixteen =
                data.retiredEmployees.pensionSixteen;
              this.dataForm.pensionSeventeen =
                data.retiredEmployees.pensionSeventeen;
              this.dataForm.pensionEighteen =
                data.retiredEmployees.pensionEighteen;
              this.dataForm.pensionNineteen =
                data.retiredEmployees.pensionNineteen;
              this.dataForm.adjustTreatment =
                data.retiredEmployees.adjustTreatment;
              this.dataForm.basicPension = data.retiredEmployees.basicPension;
              this.dataForm.pensionTwenty = data.retiredEmployees.pensionTwenty;
              this.dataForm.pensionTwentyone =
                data.retiredEmployees.pensionTwentyone;
              this.dataForm.personType = data.retiredEmployees.personType;
              this.dataForm.ext1 = data.retiredEmployees.ext1;  
            }
            this.dataHandle(
              this.dataForm.myStatus,
              this.dataForm.retirementTime,
              this.dataForm.increaseProportion
            );
          });
        } else {
          this.dataHandle(
            this.dataForm.myStatus,
            this.dataForm.retirementTime,
            this.dataForm.increaseProportion
          );
        }
      });
      this.isDisabled = true;
      this.visibleLine = "none";
    },
    init(id) {
      this.sfxs = "none";
      this.dataForm.id = id || 0;
      this.visible = true;
      this.$nextTick(() => {
        this.$refs["dataForm"].resetFields();
        if (this.dataForm.id) {
          this.$http({
            url: this.$http.adornUrl(
              `/jxxm/retiredemployees/info/${this.dataForm.id}`
            ),
            method: "get",
            params: this.$http.adornParams(),
          }).then(({ data }) => {
            if (data && data.code === 0) {
              this.dataForm.id = data.retiredEmployees.id;
              this.dataForm.areaCode = data.retiredEmployees.areaCode;
              this.dataForm.personalCode = data.retiredEmployees.personalCode;
              this.dataForm.name = data.retiredEmployees.name;
              this.dataForm.sex = data.retiredEmployees.sex;
              this.dataForm.nation = data.retiredEmployees.nation;
              this.dataForm.politicalFace = data.retiredEmployees.politicalFace;
              this.dataForm.idNo = data.retiredEmployees.idNo;
              this.dataForm.birthDate = data.retiredEmployees.birthDate;
              this.dataForm.workTime = data.retiredEmployees.workTime;
              this.dataForm.retirementTime =
                data.retiredEmployees.retirementTime;
              this.dataForm.retirementStatus =
                data.retiredEmployees.retirementStatus;
              this.dataForm.duties = data.retiredEmployees.duties;
              this.dataForm.county = data.retiredEmployees.county;
              this.dataForm.street = data.retiredEmployees.street;
              this.dataForm.community = data.retiredEmployees.community;
              this.dataForm.originalTroops =
                data.retiredEmployees.originalTroops;
              this.dataForm.handoverPeriod =
                data.retiredEmployees.handoverPeriod;
              this.dataForm.handoverTime = data.retiredEmployees.handoverTime;
              this.dataForm.handoverMode = data.retiredEmployees.handoverMode;
              this.dataForm.handoverBatch = data.retiredEmployees.handoverBatch;
              this.dataForm.workersClassification =
                data.retiredEmployees.workersClassification;
              this.dataForm.reception = data.retiredEmployees.reception;
              this.dataForm.myStatus = data.retiredEmployees.myStatus;
              this.dataForm.inOutTime = data.retiredEmployees.inOutTime;
              this.dataForm.deathTime = data.retiredEmployees.deathTime;
              this.dataForm.housingSituation =
                data.retiredEmployees.housingSituation;
              this.dataForm.housingPropertyRight =
                data.retiredEmployees.housingPropertyRight;
              this.dataForm.leaseholder = data.retiredEmployees.leaseholder;
              this.dataForm.housingArea = data.retiredEmployees.housingArea;
              this.dataForm.increasePension =
                data.retiredEmployees.increasePension;
              this.dataForm.totalMonthlyPension =
                data.retiredEmployees.totalMonthlyPension;
              this.dataForm.death = data.retiredEmployees.death;
              this.dataForm.workUnit = data.retiredEmployees.workUnit;
              this.dataForm.address = data.retiredEmployees.address;
              this.dataForm.phone = data.retiredEmployees.phone;
              this.dataForm.remarks = data.retiredEmployees.remarks;
              this.dataForm.workingYears = data.retiredEmployees.workingYears;
              this.dataForm.yuYue = data.retiredEmployees.yuYue;
              this.dataForm.workingYearsArmy =
                data.retiredEmployees.workingYearsArmy;
              this.dataForm.teachingAge = data.retiredEmployees.teachingAge;
              this.dataForm.wageLevel = data.retiredEmployees.wageLevel;
              this.dataForm.wageGrade = data.retiredEmployees.wageGrade;
              this.dataForm.wageScale = data.retiredEmployees.wageScale;
              this.dataForm.treatmentStandard =
                data.retiredEmployees.treatmentStandard;
              this.dataForm.personnelClassification =
                data.retiredEmployees.personnelClassification;
              this.dataForm.enjoyAllowance =
                data.retiredEmployees.enjoyAllowance;
              this.dataForm.specialAllowance =
                data.retiredEmployees.specialAllowance;
              this.dataForm.increaseProportion =
                data.retiredEmployees.increaseProportion;
              this.dataForm.renson = data.retiredEmployees.renson;
              this.dataForm.allowanceRatio =
                data.retiredEmployees.allowanceRatio;
              this.dataForm.postLevel = data.retiredEmployees.postLevel;
              this.dataForm.salary = data.retiredEmployees.salary;
              this.dataForm.isImprove = data.retiredEmployees.isImprove;
              this.dataForm.retirementFeeProportion =
                data.retiredEmployees.retirementFeeProportion;
              this.dataForm.senioritySalary =
                data.retiredEmployees.senioritySalary;
              this.dataForm.basicSalary = data.retiredEmployees.basicSalary;
              this.dataForm.levelSalary = data.retiredEmployees.levelSalary;
              this.dataForm.gradeSalary = data.retiredEmployees.gradeSalary;
              this.dataForm.salaryScale = data.retiredEmployees.salaryScale;
              this.dataForm.bonusAllowance =
                data.retiredEmployees.bonusAllowance;
              this.dataForm.serviceAllowance =
                data.retiredEmployees.serviceAllowance;
              this.dataForm.seniorityAllowance =
                data.retiredEmployees.seniorityAllowance;
              this.dataForm.totalSubsidy = data.retiredEmployees.totalSubsidy;
              this.dataForm.specialTeacherSubsidy =
                data.retiredEmployees.specialTeacherSubsidy;
              this.dataForm.difficultySubsidy =
                data.retiredEmployees.difficultySubsidy;
              this.dataForm.raiseWages = data.retiredEmployees.raiseWages;
              this.dataForm.retirementPayEightynine =
                data.retiredEmployees.retirementPayEightynine;
              this.dataForm.retirementPayNinetytwo =
                data.retiredEmployees.retirementPayNinetytwo;
              this.dataForm.retirementPayFirst =
                data.retiredEmployees.retirementPayFirst;
              this.dataForm.retirementPaySecond =
                data.retiredEmployees.retirementPaySecond;
              this.dataForm.retirementPayNinetyfive =
                data.retiredEmployees.retirementPayNinetyfive;
              this.dataForm.retirementPayNinetyseven =
                data.retiredEmployees.retirementPayNinetyseven;
              this.dataForm.retirementPayNinetysesec =
                data.retiredEmployees.retirementPayNinetysesec;
              this.dataForm.retirementPayNinetynine =
                data.retiredEmployees.retirementPayNinetynine;
              this.dataForm.retirementPayNinetynisec =
                data.retiredEmployees.retirementPayNinetynisec;
              this.dataForm.retirementPayZero =
                data.retiredEmployees.retirementPayZero;
              this.dataForm.retirementPayOne =
                data.retiredEmployees.retirementPayOne;
              this.dataForm.retirementPayOnenew =
                data.retiredEmployees.retirementPayOnenew;
              this.dataForm.retirementPayOnsec =
                data.retiredEmployees.retirementPayOnsec;
              this.dataForm.retirementPayThird =
                data.retiredEmployees.retirementPayThird;
              this.dataForm.retirementPayThisec =
                data.retiredEmployees.retirementPayThisec;
              this.dataForm.retirementPayFive =
                data.retiredEmployees.retirementPayFive;
              this.dataForm.retirementPaySix =
                data.retiredEmployees.retirementPaySix;
              this.dataForm.foodAllowanceSeventynine =
                data.retiredEmployees.foodAllowanceSeventynine;
              this.dataForm.foodAllowanceEightyeight =
                data.retiredEmployees.foodAllowanceEightyeight;
              this.dataForm.oilAllowanceNightyone =
                data.retiredEmployees.oilAllowanceNightyone;
              this.dataForm.oilAllowanceNightytwo =
                data.retiredEmployees.oilAllowanceNightytwo;
              this.dataForm.fuelLlowance = data.retiredEmployees.fuelLlowance;
              this.dataForm.meatLlowance = data.retiredEmployees.meatLlowance;
              this.dataForm.oilAllowanceNightythird =
                data.retiredEmployees.oilAllowanceNightythird;
              this.dataForm.livingAllowanceEightyfive =
                data.retiredEmployees.livingAllowanceEightyfive;
              this.dataForm.livingAllowanceEightyei =
                data.retiredEmployees.livingAllowanceEightyei;
              this.dataForm.livingAllowanceNightytw =
                data.retiredEmployees.livingAllowanceNightytw;
              this.dataForm.livingAllowanceNightyfo =
                data.retiredEmployees.livingAllowanceNightyfo;
              this.dataForm.livingAllowanceNightyfive =
                data.retiredEmployees.livingAllowanceNightyfive;
              this.dataForm.livingAllowanceNightysix =
                data.retiredEmployees.livingAllowanceNightysix;
              this.dataForm.livingAllowanceNightysev =
                data.retiredEmployees.livingAllowanceNightysev;
              this.dataForm.livingAllowanceNightyeig =
                data.retiredEmployees.livingAllowanceNightyeig;
              this.dataForm.livingAllowanceNightynig =
                data.retiredEmployees.livingAllowanceNightynig;
              this.dataForm.livingAllowanceZero =
                data.retiredEmployees.livingAllowanceZero;
              this.dataForm.livingAllowanceOne =
                data.retiredEmployees.livingAllowanceOne;
              this.dataForm.livingAllowanceTwo =
                data.retiredEmployees.livingAllowanceTwo;
              this.dataForm.livingAllowanceThird =
                data.retiredEmployees.livingAllowanceThird;
              this.dataForm.livingAllowanceFour =
                data.retiredEmployees.livingAllowanceFour;
              this.dataForm.livingAllowanceSeven =
                data.retiredEmployees.livingAllowanceSeven;
              this.dataForm.specialGoveAllowanc =
                data.retiredEmployees.specialGoveAllowanc;
              this.dataForm.paperMoney = data.retiredEmployees.paperMoney;
              this.dataForm.housingSubsidy =
                data.retiredEmployees.housingSubsidy;
              this.dataForm.bathSubsidy = data.retiredEmployees.bathSubsidy;
              this.dataForm.honorAllowance =
                data.retiredEmployees.honorAllowance;
              this.dataForm.otherIncome = data.retiredEmployees.otherIncome;
              this.dataForm.jobSubsidy = data.retiredEmployees.jobSubsidy;
              this.dataForm.ageAllowance = data.retiredEmployees.ageAllowance;
              this.dataForm.holidaySubsidy =
                data.retiredEmployees.holidaySubsidy;
              this.dataForm.retirementAllowanceOneo =
                data.retiredEmployees.retirementAllowanceOneo;
              this.dataForm.growthMechanismSubsidy =
                data.retiredEmployees.growthMechanismSubsidy;
              this.dataForm.workingYearsSubsidy =
                data.retiredEmployees.workingYearsSubsidy;
              this.dataForm.proportionalSubsidy =
                data.retiredEmployees.proportionalSubsidy;
              this.dataForm.retirementAllowanceOneth =
                data.retiredEmployees.retirementAllowanceOneth;
              this.dataForm.growthMechanismThirty =
                data.retiredEmployees.growthMechanismThirty;
              this.dataForm.retirementAllowanceThirty =
                data.retiredEmployees.retirementAllowanceThirty;
              this.dataForm.retirementPayFourty =
                data.retiredEmployees.retirementPayFourty;
              this.dataForm.logoutDate = data.retiredEmployees.logoutDate;
              this.dataForm.heatingSubsidy =
                data.retiredEmployees.heatingSubsidy;
              this.dataForm.serviceSubsidy =
                data.retiredEmployees.serviceSubsidy;
              this.dataForm.pensionSixteen =
                data.retiredEmployees.pensionSixteen;
              this.dataForm.pensionSeventeen =
                data.retiredEmployees.pensionSeventeen;
              this.dataForm.pensionEighteen =
                data.retiredEmployees.pensionEighteen;
              this.dataForm.pensionNineteen =
                data.retiredEmployees.pensionNineteen;
              this.dataForm.adjustTreatment =
                data.retiredEmployees.adjustTreatment;
              this.dataForm.basicPension = data.retiredEmployees.basicPension;
              this.dataForm.pensionTwenty = data.retiredEmployees.pensionTwenty;
              this.dataForm.pensionTwentyone =
                data.retiredEmployees.pensionTwentyone;
              this.dataForm.personType = data.retiredEmployees.personType;  
              this.dataForm.ext1 = data.retiredEmployees.ext1; 
            }
            this.dataHandle(
              this.dataForm.myStatus,
              this.dataForm.retirementTime,
              this.dataForm.increaseProportion
            );
          });
        } else {
          this.dataHandle(
            this.dataForm.myStatus,
            this.dataForm.retirementTime,
            this.dataForm.increaseProportion
          );
        }
      });
      this.isDisabled = false;
      this.visibleLine = "";
    },
    dataHandle(val, reVal, inPro) {
      if (val != null && val != "") {
        if (val == "在世") {
          this.logoutDateDisabled = true;
          this.deathDisabled = true;
          this.deathTimeDisabled = true;
        } else {
          this.logoutDateDisabled = false;
          this.deathDisabled = false;
          this.deathTimeDisabled = false;
        }
      } else {
        this.logoutDateDisabled = false;
        this.deathDisabled = false;
        this.deathTimeDisabled = false;
      }
      if (reVal != null && reVal != "") {
        let nian = parseInt(reVal.substring(0, 4));
        let month = parseInt(reVal.substring(5, 7));
        if (nian < 2006) {
          this.postLevel = true;
          this.salaryClass = true;
        } else if (nian == 2006 && month < 7) {
          this.postLevel = true;
          this.salaryClass = true;
        } else {
          this.postLevel = false;
          this.salaryClass = false;
        }
        //奖金津贴比例
        if (nian > 2006 || nian < 1993) {
          this.allowanceRatioClass = true;
        } else if (nian == 2006 && month > 6) {
          this.allowanceRatioClass = true;
        } else if (nian == 1993 && month < 10) {
          this.allowanceRatioClass = true;
        } else {
          this.allowanceRatioClass = false;
        }
        //85-06工改工资档次
        if (nian > 2006 || nian < 1985) {
          this.wageGradeClass = true;
        } else if (nian == 2006 && month > 6) {
          this.wageGradeClass = true;
        } else if (nian == 1985 && month < 7) {
          this.wageGradeClass = true;
        } else {
          this.wageGradeClass = false;
        }
      } else {
        this.postLevel = false;
        this.salaryClass = false;
        this.allowanceRatioClass = false;
        this.wageGradeClass = false;
      }
      inPro = parseInt(inPro);
      if (inPro == 0) {
        this.rensonClass = true;
      } else {
        this.rensonClass = false;
      }
    },
    // 表单提交
    dataFormSubmit() {
      this.$refs["dataForm"].validate((valid) => {
        if (valid) {
          this.$http({
            url: this.$http.adornUrl(
              `/jxxm/retiredemployees/${!this.dataForm.id ? "save" : "update"}`
            ),
            method: "post",
            data: this.$http.adornData({
              id: this.dataForm.id || undefined,
              areaCode: this.dataForm.areaCode,
              personalCode: this.dataForm.personalCode,
              name: this.dataForm.name,
              sex: this.dataForm.sex,
              nation: this.dataForm.nation,
              politicalFace: this.dataForm.politicalFace,
              idNo: this.dataForm.idNo,
              birthDate: this.dataForm.birthDate,
              workTime: this.dataForm.workTime,
              retirementTime: this.dataForm.retirementTime,
              retirementStatus: this.dataForm.retirementStatus,
              duties: this.dataForm.duties,
              county: this.dataForm.county,
              street: this.dataForm.street,
              community: this.dataForm.community,
              originalTroops: this.dataForm.originalTroops,
              handoverPeriod: this.dataForm.handoverPeriod,
              handoverTime: this.dataForm.handoverTime,
              handoverMode: this.dataForm.handoverMode,
              handoverBatch: this.dataForm.handoverBatch,
              workersClassification: this.dataForm.workersClassification,
              reception: this.dataForm.reception,
              myStatus: this.dataForm.myStatus,
              inOutTime: this.dataForm.inOutTime,
              deathTime: this.dataForm.deathTime,
              housingSituation: this.dataForm.housingSituation,
              housingPropertyRight: this.dataForm.housingPropertyRight,
              leaseholder: this.dataForm.leaseholder,
              housingArea: this.dataForm.housingArea,
              increasePension: 0.0,
              totalMonthlyPension: this.dataForm.totalMonthlyPension || 0,
              death: this.dataForm.death,
              workUnit: this.dataForm.workUnit,
              address: this.dataForm.address,
              phone: this.dataForm.phone,
              remarks: this.dataForm.remarks,
              workingYears: this.dataForm.workingYears,
              yuYue: this.dataForm.yuYue,
              workingYearsArmy: this.dataForm.workingYearsArmy,
              teachingAge: this.dataForm.teachingAge || 0,
              wageLevel: this.dataForm.wageLevel,
              wageGrade: this.dataForm.wageGrade,
              wageScale: this.dataForm.wageScale,
              treatmentStandard: this.dataForm.treatmentStandard,
              personnelClassification: this.dataForm.personnelClassification,
              enjoyAllowance: this.dataForm.enjoyAllowance,
              specialAllowance: this.dataForm.specialAllowance,
              increaseProportion: this.dataForm.increaseProportion || 0,
              renson: this.dataForm.renson,
              allowanceRatio: this.dataForm.allowanceRatio,
              postLevel: this.dataForm.postLevel,
              salary: this.dataForm.salary,
              isImprove: this.dataForm.isImprove,
              retirementFeeProportion: this.dataForm.retirementFeeProportion || 100,
              senioritySalary: this.dataForm.senioritySalary || 0,
              basicSalary: this.dataForm.basicSalary || 0,
              levelSalary: this.dataForm.levelSalary || 0,
              gradeSalary: this.dataForm.gradeSalary || 0,
              salaryScale: this.dataForm.salaryScale || 0,
              bonusAllowance: this.dataForm.bonusAllowance || 0,
              serviceAllowance: this.dataForm.serviceAllowance || 0,
              seniorityAllowance: this.dataForm.seniorityAllowance || 0,
              totalSubsidy: this.dataForm.totalSubsidy || 0,
              specialTeacherSubsidy: this.dataForm.specialTeacherSubsidy || 0,
              difficultySubsidy: this.dataForm.difficultySubsidy || 0,
              raiseWages: this.dataForm.raiseWages || 0,
              retirementPayEightynine: this.dataForm.retirementPayEightynine || 0,
              retirementPayNinetytwo: this.dataForm.retirementPayNinetytwo || 0,
              retirementPayFirst: this.dataForm.retirementPayFirst || 0,
              retirementPaySecond: this.dataForm.retirementPaySecond || 0,
              retirementPayNinetyfive: this.dataForm.retirementPayNinetyfive || 0,
              retirementPayNinetyseven: this.dataForm.retirementPayNinetyseven || 0,
              retirementPayNinetysesec: this.dataForm.retirementPayNinetysesec || 0,
              retirementPayNinetynine: this.dataForm.retirementPayNinetynine || 0,
              retirementPayNinetynisec: this.dataForm.retirementPayNinetynisec || 0,
              retirementPayZero: this.dataForm.retirementPayZero || 0,
              retirementPayOne: this.dataForm.retirementPayOne || 0,
              retirementPayOnenew: this.dataForm.retirementPayOnenew || 0,
              retirementPayOnsec: this.dataForm.retirementPayOnsec || 0,
              retirementPayThird: this.dataForm.retirementPayThird || 0,
              retirementPayThisec: this.dataForm.retirementPayThisec || 0,
              retirementPayFive: this.dataForm.retirementPayFive || 0,
              retirementPaySix: this.dataForm.retirementPaySix || 0,
              foodAllowanceSeventynine: this.dataForm.foodAllowanceSeventynine || 0,
              foodAllowanceEightyeight: this.dataForm.foodAllowanceEightyeight || 0,
              oilAllowanceNightyone: this.dataForm.oilAllowanceNightyone || 0,
              oilAllowanceNightytwo: this.dataForm.oilAllowanceNightytwo || 0,
              fuelLlowance: this.dataForm.fuelLlowance || 0,
              meatLlowance: this.dataForm.meatLlowance || 0,
              oilAllowanceNightythird: this.dataForm.oilAllowanceNightythird || 0,
              livingAllowanceEightyfive:
                this.dataForm.livingAllowanceEightyfive || 0,
              livingAllowanceEightyei: this.dataForm.livingAllowanceEightyei || 0,
              livingAllowanceNightytw: this.dataForm.livingAllowanceNightytw || 0,
              livingAllowanceNightyfo: this.dataForm.livingAllowanceNightyfo || 0,
              livingAllowanceNightyfive:
                this.dataForm.livingAllowanceNightyfive || 0,
              livingAllowanceNightysix: this.dataForm.livingAllowanceNightysix || 0,
              livingAllowanceNightysev: this.dataForm.livingAllowanceNightysev || 0,
              livingAllowanceNightyeig: this.dataForm.livingAllowanceNightyeig || 0,
              livingAllowanceNightynig: this.dataForm.livingAllowanceNightynig || 0,
              livingAllowanceZero: this.dataForm.livingAllowanceZero || 0,
              livingAllowanceOne: this.dataForm.livingAllowanceOne || 0,
              livingAllowanceTwo: this.dataForm.livingAllowanceTwo || 0,
              livingAllowanceThird: this.dataForm.livingAllowanceThird || 0,
              livingAllowanceFour: this.dataForm.livingAllowanceFour || 0,
              livingAllowanceSeven: this.dataForm.livingAllowanceSeven || 0,
              specialGoveAllowanc: this.dataForm.specialGoveAllowanc,
              paperMoney: this.dataForm.paperMoney || 0,
              housingSubsidy: this.dataForm.housingSubsidy || 0,
              bathSubsidy: this.dataForm.bathSubsidy || 0,
              honorAllowance: this.dataForm.honorAllowance || 0,
              otherIncome: this.dataForm.otherIncome || 0,
              jobSubsidy: this.dataForm.jobSubsidy || 0,
              ageAllowance: this.dataForm.ageAllowance || 0,
              holidaySubsidy: this.dataForm.holidaySubsidy,
              retirementAllowanceOneo: this.dataForm.retirementAllowanceOneo || 0,
              growthMechanismSubsidy: this.dataForm.growthMechanismSubsidy || 0,
              workingYearsSubsidy: this.dataForm.workingYearsSubsidy || 0,
              proportionalSubsidy: this.dataForm.proportionalSubsidy || 0,
              retirementAllowanceOneth: this.dataForm.retirementAllowanceOneth || 0,
              growthMechanismThirty: this.dataForm.growthMechanismThirty || 0,
              retirementAllowanceThirty:
                this.dataForm.retirementAllowanceThirty || 0,
              retirementPayFourty: this.dataForm.retirementPayFourty || 0,
              logoutDate: this.dataForm.logoutDate,
              heatingSubsidy: this.dataForm.heatingSubsidy,
              serviceSubsidy: this.dataForm.serviceSubsidy || 0,
              pensionSixteen: this.dataForm.pensionSixteen || 0,
              pensionSeventeen: this.dataForm.pensionSeventeen || 0,
              pensionEighteen: this.dataForm.pensionEighteen || 0,
              pensionNineteen: this.dataForm.pensionNineteen || 0,
              adjustTreatment: this.dataForm.adjustTreatment || 0,
              basicPension: this.dataForm.basicPension,
              pensionTwenty: this.dataForm.pensionTwenty || 0,
              pensionTwentyone: this.dataForm.pensionTwentyone || 0,
              ext1: this.dataForm.ext1 || 0,
              state:0,
              personType: this.dataForm.personType
            }),
          }).then(({ data }) => {
            if (data && data.code === 0) {
              this.$message({
                message: "操作成功",
                type: "success",
                duration: 1500,
                onClose: () => {
                  this.visible = false;
                  this.$emit("refreshDataList");
                },
              });
            } else {
              this.$message.error(data.msg);
            }
          });
        }
      });
    },

    dataSex(type) {
      this.$http({
        url: this.$http.adornUrl("/sys/dict/select/" + type),
        method: "get",
        params: this.$http.adornParams(),
      }).then(({ data }) => {
        if (type == "SEX_GROUP") {
          this.sexList = data && data.code === 0 ? data.list : [];
        } else if (type == "EMPLOYEE") {
          this.workersClassificationList =
            data && data.code === 0 ? data.list : [];
        } else if (type == "AREA") {
          this.countyList = data && data.code === 0 ? data.list : [];
        } else if (type == "NATION") {
          this.nationList = data && data.code === 0 ? data.list : [];
        } else if (type == "ZZMM") {
          this.politicalFaceList = data && data.code === 0 ? data.list : [];
        } else if (type == "TXQSF") {
          this.retirementStatusList = data && data.code === 0 ? data.list : [];
        } else if (type == "YBD") {
          this.originalTroopsList = data && data.code === 0 ? data.list : [];
        } else if (type == "YJSJD") {
          this.handoverPeriodList = data && data.code === 0 ? data.list : [];
        } else if (type == "YJFS") {
          this.handoverModeList = data && data.code === 0 ? data.list : [];
        } else if (type == "YJPC") {
          this.handoverBatchList = data && data.code === 0 ? data.list : [];
        } else if (type == "SFXSRYJT") {
          this.enjoyAllowanceList = data && data.code === 0 ? data.list : [];
        } else if (type == "SFXSZFTSJT") {
          this.specialAllowanceList = data && data.code === 0 ? data.list : [];
        } else if (type == "JSQK") {
          this.receptionList = data && data.code === 0 ? data.list : [];
        } else if (type == "BRZT") {
          this.myStatusList = data && data.code === 0 ? data.list : [];
        } else if (type == "DYBZ") {
          this.treatmentStandardList = data && data.code === 0 ? data.list : [];
        } else if (type == "ZFQK") {
          this.housingSituationList = data && data.code === 0 ? data.list : [];
        } else if (type == "ZFCQ") {
          this.housingPropertyRightList =
            data && data.code === 0 ? data.list : [];
        } else if (type == "FWZLR") {
          this.leaseholderList = data && data.code === 0 ? data.list : [];
        } else if (type == "GZSFTG") {
          this.isImproveList = data && data.code === 0 ? data.list : [];
        } else if (type == "JJJTBL") {
          this.allowanceRatioList = data && data.code === 0 ? data.list : [];
        } else if (type == "GGGZDC") {
          this.wageGradeList = data && data.code === 0 ? data.list : [];
        } else if (type == "TGBLYY") {
          this.rensonList = data && data.code === 0 ? data.list : [];
        } else if (type == "DEATH") {
          this.deathList = data && data.code === 0 ? data.list : [];
        } else if (type == "RYFL") {
          this.personTypeList = data && data.code === 0 ? data.list : [];
        }
      });
    },
    //本人状态关联是否死亡
    dataBrzt(val, type) {
      this.$http({
        url: this.$http.adornUrl("/sys/dict/select/" + type),
        method: "get",
        params: this.$http.adornParams(),
      }).then(({ data }) => {
        if (val == "在世" || val == "退回") {
          val = "在世";
          this.deathTimeDisabled = true;
          this.logoutDateDisabled = true;
          
          this.$http({
              url: this.$http.adornUrl("/sys/dict/secondary/" + val),
              method: "get",
              params: this.$http.adornParams(),
            }).then(({ data }) => {
              this.dataForm.death = null;
              this.dataForm.logoutDate = null;
              this.deathList = data && data.code === 0 ? data.list : [];
            })
        } else {
          this.deathTimeDisabled = false;
          this.logoutDateDisabled = false;
          //获取当前时间
          var _this = this;
          let yy = new Date().getFullYear();
          let mm = new Date().getMonth()+1;
          let dd = new Date().getDate();
          _this.gettime = yy+'-'+mm+'-'+dd;
          this.dataForm.logoutDate = _this.gettime;

          this.$http({
              url: this.$http.adornUrl("/sys/dict/secondary/" + val),
              method: "get",
              params: this.$http.adornParams(),
            }).then(({ data }) => {
              this.dataForm.death = null;
              this.deathList = data && data.code === 0 ? data.list : [];
            })
        }
      });
    },
    //人员分类关联职工分类
    dataRyfl(val, type) {
      this.$http({
        url: this.$http.adornUrl("/sys/dict/select/" + type),
        method: "get",
        params: this.$http.adornParams(),
      }).then(({ data }) => {
        if (val == "离休干部" ) {
          var types = "EMPLOYEE" 
          this.$http({
              url: this.$http.adornUrl("/sys/dict/select/" + types),
              method: "get",
              params: this.$http.adornParams(),
            }).then(({ data }) => {
              var dataValue = [];
              for (var i=0 ; i<data.list.length;i++)
              {
                this.workersClassificationList = null;
                this.dataForm.workersClassification ="";
                this.dataForm.retirementFeeProportion ="";
                if(data.list[i].value == "离休")
                {
                    dataValue.push({
                         id:data.list[i].id,
                         name: data.list[i].name,
                         type: data.list[i].type,
                         code: data.list[i].code,
                        value: data.list[i].value
                    });
                }
                 
              }
              this.workersClassificationList = dataValue;
              this.dataForm.retirementFeeProportion = 100;
            })
        } else if(val == "建国前老工人") {
           var types = "EMPLOYEE" 
            this.$http({
                url: this.$http.adornUrl("/sys/dict/select/" + types),
                method: "get",
                params: this.$http.adornParams(),
              }).then(({ data }) => {
                var dataValue = [];
                for (var i=0 ; i<data.list.length;i++)
                {
                  this.workersClassificationList = null;
                  this.dataForm.workersClassification ="";
                  this.dataForm.retirementFeeProportion ="";
                  if(data.list[i].value == "退休")
                  {
                      dataValue.push({
                          id:data.list[i].id,
                          name: data.list[i].name,
                          type: data.list[i].type,
                          code: data.list[i].code,
                          value: data.list[i].value
                      });
                  }
                  
                }
                this.workersClassificationList = dataValue;
                this.dataForm.retirementFeeProportion = 100;
              })
        }else
        {
           var types = "EMPLOYEE" 
            this.$http({
                url: this.$http.adornUrl("/sys/dict/select/" + types),
                method: "get",
                params: this.$http.adornParams(),
              }).then(({ data }) => {
                var dataValue = [];
                for (var i=0 ; i<data.list.length;i++)
                {
                  this.workersClassificationList = null;
                  this.dataForm.workersClassification ="";
                  this.dataForm.retirementFeeProportion ="";
                  if(data.list[i].value == "退休" || data.list[i].value == "退职")
                  {
                      dataValue.push({
                          id:data.list[i].id,
                          name: data.list[i].name,
                          type: data.list[i].type,
                          code: data.list[i].code,
                          value: data.list[i].value
                      });
                  }
                  
                }
                this.workersClassificationList = dataValue;
              })
        }
      });
    },
    //地区联动专用
    dataArea(val, type) {
      this.$http({
        url: this.$http.adornUrl("/sys/dict/select/" + type),
        method: "get",
        params: this.$http.adornParams(),
      }).then(({ data }) => {
        if (type == "AREA") {
          this.countyList = data && data.code === 0 ? data.list : [];
        } else if (type == "TXQSF") {
          this.retirementStatusList = data && data.code === 0 ? data.list : [];
        }
        this.$http({
          url: this.$http.adornUrl("/sys/dict/secondary/" + val),
          method: "get",
          params: this.$http.adornParams(),
        }).then(({ data }) => {
          if (type == "AREA") {
            this.dataForm.street = null;
            this.streetList = data && data.code === 0 ? data.list : [];
          } else if (type == "TXQSF") {
            this.dataForm.duties = null;
            this.dutiesList = data && data.code === 0 ? data.list : [];
            let vals = "";
            if (val == "技术人员") {
              vals = val + 2;
            } else {
              vals = "其它";
            }
            this.$http({
              url: this.$http.adornUrl("/sys/dict/secondary/" + vals),
              method: "get",
              params: this.$http.adornParams(),
            }).then(({ data }) => {
              this.dataForm.personnelClassification = null;
              this.personnelClassificationList =
                data && data.code === 0 ? data.list : [];

              let vaks = "";
              vaks = val + 1;
              this.$http({
                url: this.$http.adornUrl("/sys/dict/secondary/" + vaks),
                method: "get",
                params: this.$http.adornParams(),
              }).then(({ data }) => {
                this.dataForm.postLevel = null;
                this.postLevelList = data && data.code === 0 ? data.list : [];
              });
            });
          }
        });
      });
    },
    //联动街道
    dataStreet(street) {
      if (street == null || street == "") {
        this.$message.error("请先选择区县");
      } else {
        if (this.streetList == null || this.streetList.length == 0) {
          this.$http({
            url: this.$http.adornUrl("/sys/dict/secondary/" + street),
            method: "get",
            params: this.$http.adornParams(),
          }).then(({ data }) => {
            this.streetList = data && data.code === 0 ? data.list : [];
          });
        }
      }
    },
    //联动退休时职务
    dataduty(duty) {
      if (duty == null || duty == "") {
        this.$message.error("请先选择退休前身份");
      } else {
        if (this.dutiesList == null || this.dutiesList.length == 0) {
          this.$http({
            url: this.$http.adornUrl("/sys/dict/secondary/" + duty),
            method: "get",
            params: this.$http.adornParams(),
          }).then(({ data }) => {
            this.dutiesList = data && data.code === 0 ? data.list : [];
          });
        }
      }
    },
    //联动技术人员分类
    personnelClass(jsryfl) {
      if (jsryfl == null || jsryfl == "") {
        this.$message.error("请先选择退休前身份");
      } else {
        if (
          this.personnelClassificationList == null ||
          this.personnelClassificationList.length == 0
        ) {
          if (jsryfl == "技术人员") {
            jsryfl = jsryfl + 2;
          } else {
            jsryfl = "其它";
          }
          this.$http({
            url: this.$http.adornUrl("/sys/dict/secondary/" + jsryfl),
            method: "get",
            params: this.$http.adornParams(),
          }).then(({ data }) => {
            this.personnelClassificationList =
              data && data.code === 0 ? data.list : [];
          });
        }
      }
    },
    postLevelClass(reValue) {
      if (reValue == null || reValue == "") {
        this.$message.error("请先选择退休前身份");
      } else {
        reValue = reValue + 1;
        this.$http({
          url: this.$http.adornUrl("/sys/dict/secondary/" + reValue),
          method: "get",
          params: this.$http.adornParams(),
        }).then(({ data }) => {
          this.postLevelList = data && data.code === 0 ? data.list : [];
        });
      }
    },

    inputFunc(idNo) {
      if (idNo != null && idNo != "") {
        let iden = idNo;
        let sex = null;
        let birth = null;
        //let myDate = new Date();
        //let month = myDate.getMonth() + 1;
        //let day = myDate.getDate();
        //let age = 0;

        if (iden.length == 18) {
          //age = myDate.getFullYear() - iden.substring(6, 10) - 1;
          sex = iden.substring(16, 17);
          birth =
            iden.substring(6, 10) +
            "-" +
            iden.substring(10, 12) +
            "-" +
            iden.substring(12, 14);
          //if (iden.substring(10, 12) < month || iden.substring(10, 12) == month && iden.substring(12, 14) <= day) age++;
        }
        if (iden.length == 15) {
          //age = myDate.getFullYear() - iden.substring(6, 8) - 1901;
          sex = iden.substring(13, 14);
          birth =
            "19" +
            iden.substring(6, 8) +
            "-" +
            iden.substring(8, 10) +
            "-" +
            iden.substring(10, 12);
          //if (iden.substring(8, 10) < month || iden.substring(8, 10) == month && iden.substring(10, 12) <= day) age++;
        }

        if (sex % 2 === 0) {
          sex = "女";
          let sf = this.dataForm.retirementStatus;
          if (sf == "技术人员" || sf == "职员") {
            let nian = parseInt(birth.substring(0, 4)) + 55;
            let month = parseInt(birth.substring(5, 7));
            this.dataForm.retirementTime =
              nian + "-" + birth.substring(5, 7) + "-" + birth.substring(8, 10);
            if (nian < 2006) {
              this.postLevel = true;
              this.salaryClass = true;
            } else if (nian == 2006 && month < 7) {
              this.postLevel = true;
              this.salaryClass = true;
            } else {
              this.postLevel = false;
              this.salaryClass = false;
            }
            //奖金津贴比例
            if (nian > 2006 || nian < 1993) {
              this.allowanceRatioClass = true;
            } else if (nian == 2006 && month > 6) {
              this.allowanceRatioClass = true;
            } else if (nian == 1993 && month < 10) {
              this.allowanceRatioClass = true;
            } else {
              this.allowanceRatioClass = false;
            }
            //85-06工改工资档次
            if (nian > 2006 || nian < 1985) {
              this.wageGradeClass = true;
            } else if (nian == 2006 && month > 6) {
              this.wageGradeClass = true;
            } else if (nian == 1985 && month < 7) {
              this.wageGradeClass = true;
            } else {
              this.wageGradeClass = false;
            }
          } else if (sf == "技术工人" || sf == "普工") {
            let nian = parseInt(birth.substring(0, 4)) + 50;
            let month = parseInt(birth.substring(5, 7));
            this.dataForm.retirementTime =
              nian + "-" + birth.substring(5, 7) + "-" + birth.substring(8, 10);
            if (nian < 2006) {
              this.postLevel = true;
              this.salaryClass = true;
            } else if (nian == 2006 && month < 7) {
              this.postLevel = true;
              this.salaryClass = true;
            } else {
              this.postLevel = false;
              this.salaryClass = false;
            }
            //奖金津贴比例
            if (nian > 2006 || nian < 1993) {
              this.allowanceRatioClass = true;
            } else if (nian == 2006 && month > 6) {
              this.allowanceRatioClass = true;
            } else if (nian == 1993 && month < 10) {
              this.allowanceRatioClass = true;
            } else {
              this.allowanceRatioClass = false;
            }
            //85-06工改工资档次
            if (nian > 2006 || nian < 1985) {
              this.wageGradeClass = true;
            } else if (nian == 2006 && month > 6) {
              this.wageGradeClass = true;
            } else if (nian == 1985 && month < 7) {
              this.wageGradeClass = true;
            } else {
              this.wageGradeClass = false;
            }
          }
        } else {
          sex = "男";
          let nian = parseInt(birth.substring(0, 4)) + 60;
          let month = parseInt(birth.substring(5, 7));
          this.dataForm.retirementTime =
            nian + "-" + birth.substring(5, 7) + "-" + birth.substring(8, 10);
          if (nian < 2006) {
            this.postLevel = true;
            this.salaryClass = true;
          } else if (nian == 2006 && month < 7) {
            this.postLevel = true;
            this.salaryClass = true;
          } else {
            this.postLevel = false;
            this.salaryClass = false;
          }
          //奖金津贴比例
          if (nian > 2006 || nian < 1993) {
            this.allowanceRatioClass = true;
          } else if (nian == 2006 && month > 6) {
            this.allowanceRatioClass = true;
          } else if (nian == 1993 && month < 10) {
            this.allowanceRatioClass = true;
          } else {
            this.allowanceRatioClass = false;
          }
          //85-06工改工资档次
          if (nian > 2006 || nian < 1985) {
            this.wageGradeClass = true;
          } else if (nian == 2006 && month > 6) {
            this.wageGradeClass = true;
          } else if (nian == 1985 && month < 7) {
            this.wageGradeClass = true;
          } else {
            this.wageGradeClass = false;
          }
        }
        this.dataForm.sex = sex;
        this.dataForm.birthDate = birth;
      }
    },
    inputWork(time) {
      let value = 0;
      if (time != null && time != "") {
        let retime = this.dataForm.retirementTime;
        if (retime != null && retime != "") {
          let month =
            parseInt(retime.substring(5, 7)) +
            1 -
            parseInt(time.substring(5, 7));
          if (month >= 0) {
            value =
              parseInt(retime.substring(0, 4)) - parseInt(time.substring(0, 4));
          } else {
            value =
              parseInt(retime.substring(0, 4)) -
              parseInt(time.substring(0, 4)) -
              1;
          }
          this.dataForm.workingYears = value;
        }
      }
    },
    retirement(reTime) {
      if (reTime != null && reTime != "") {
        let nian = parseInt(reTime.substring(0, 4));
        let month = parseInt(reTime.substring(5, 7));
        //06工改和薪级
        if (nian < 2006) {
          this.postLevel = true;
          this.salaryClass = true;
        } else if (nian == 2006 && month < 7) {
          this.postLevel = true;
          this.salaryClass = true;
        } else {
          this.postLevel = false;
          this.salaryClass = false;
        }
        //奖金津贴比例
        if (nian > 2006 || nian < 1993) {
          this.allowanceRatioClass = true;
        } else if (nian == 2006 && month > 6) {
          this.allowanceRatioClass = true;
        } else if (nian == 1993 && month < 10) {
          this.allowanceRatioClass = true;
        } else {
          this.allowanceRatioClass = false;
        }
        //85-06工改工资档次
        if (nian > 2006 || nian < 1985) {
          this.wageGradeClass = true;
        } else if (nian == 2006 && month > 6) {
          this.wageGradeClass = true;
        } else if (nian == 1985 && month < 7) {
          this.wageGradeClass = true;
        } else {
          this.wageGradeClass = false;
        }
      }
    },
    armyWork(army, work) {
      if (army != null && army != "") {
        let value = parseInt(work) - parseInt(army);
        if (value < 0) {
          this.$message.error("在军队工作年限应小于等于工作年限");
          this.dataForm.workingYearsArmy = work;
        }
      }
    },
    dataImprove(val, type) {
      if (val == "是") {
        if (
          this.dataForm.teachingAge != null &&
          this.dataForm.teachingAge != ""
        ) {
          let value = parseInt(this.dataForm.teachingAge);
          if (value <= 0) {
            this.$message.error("教龄必须大于0");
            this.dataForm.isImprove = null;
          }
        } else {
          this.$message.error("教龄必须大于0");
          this.dataForm.isImprove = null;
        }
      }
    },
    inProtion(inValue) {
      if (inValue != null && inValue != "") {
        inValue = parseInt(inValue);
        if (inValue == 0) {
          this.rensonClass = true;
        } else {
          this.rensonClass = false;
        }
      }
    },
    // 弹出
      txf () {
        let id = this.dataForm.id;

        var reVal = this.dataForm.retirementTime;
        var txqsf = this.dataForm.retirementStatus;
        var dybz = this.dataForm.treatmentStandard;

        let nian = parseInt(reVal.substring(0, 4));
        let month = parseInt(reVal.substring(5, 7));

        if(nian < 1985)
        {
          this.addOrUpdateVisible1 = true
          this.$nextTick(() => {
            this.$refs.TXF.test(id)
          })   
        }else if(nian >= 1985 && nian <1993)
        {
          this.addOrUpdateVisible2 = true
          this.$nextTick(() => {
            this.$refs.TXF2.test(id)
          })
        }else if(nian == 1993 && month <10)
        {
          this.addOrUpdateVisible2 = true
          this.$nextTick(() => {
            this.$refs.TXF2.test(id)
          })
        }else if(nian == 1993 && month >=10)
        {
              if(txqsf == "职员" && dybz == '机关职员标准')
              {
                this.addOrUpdateVisible3 = true
                this.$nextTick(() => {
                  this.$refs.TXF3.test(id)
                })
              }else
              {
                this.addOrUpdateVisible4 = true
                this.$nextTick(() => {
                  this.$refs.TXF4.test(id)
                })
              }
        }else if(nian >1993 && nian <2003)
        {    if(txqsf == "职员" && dybz == '机关职员标准')
              {
                this.addOrUpdateVisible3 = true
                this.$nextTick(() => {
                  this.$refs.TXF3.test(id)
                })
              }else
              {
                this.addOrUpdateVisible4 = true
                this.$nextTick(() => {
                  this.$refs.TXF4.test(id)
                })
              }
        }else if(nian == 2003 && month <7)
        {
            if(txqsf == "职员" && dybz == '机关职员标准')
              {
                this.addOrUpdateVisible3 = true
                this.$nextTick(() => {
                  this.$refs.TXF3.test(id)
                })
              }else
              {
                this.addOrUpdateVisible4 = true
                this.$nextTick(() => {
                  this.$refs.TXF4.test(id)
                })
              }
        }else if(nian == 2003 && month >=7)
        {
          this.addOrUpdateVisible4 = true
          this.$nextTick(() => {
            this.$refs.TXF4.test(id)
          })
        }else if(nian > 2003 && nian < 2006)
        {
          this.addOrUpdateVisible4 = true
          this.$nextTick(() => {
            this.$refs.TXF4.test(id)
          })
        }
        else if(nian == 2006 && month <7)
        {
          this.addOrUpdateVisible4 = true
          this.$nextTick(() => {
            this.$refs.TXF4.test(id)
          })
        }else
        {
          this.addOrUpdateVisible5 = true
          this.$nextTick(() => {
            this.$refs.TXF5.test(id)
          })
        }
      },
    fxj() {
      let id = this.dataForm.id;
      var deathTime = this.dataForm.deathTime;
      var deathNian = parseInt(deathTime.substring(0, 4));
      var deathMonth = parseInt(deathTime.substring(5, 7));

      var reVal = this.dataForm.retirementTime;
      var txqsf = this.dataForm.retirementStatus;
      var dybz = this.dataForm.treatmentStandard;
      var nian = parseInt(reVal.substring(0, 4));
      var month = parseInt(reVal.substring(5, 7));

      if(deathNian<2011 || (deathNian == 2011 && deathMonth <8))
      {
        if(nian < 1985)
        {
          this.addOrUpdateFxjA1 = true
          this.$nextTick(() => {
            this.$refs.FXJA1.test(id)
          })
        }else if(((nian >= 1985 && nian <1993)) || ((nian == 1993 && month <10)))
        {
          this.addOrUpdateFxjA2 = true
          this.$nextTick(() => {
            this.$refs.FXJA2.test(id)
          })
        }else if((nian == 1993 && month >=10) || (nian >1993 && nian <2003) || (nian == 2003 && month <7))
        {
          if(txqsf == "职员" && dybz == '机关职员标准')
          {
            this.addOrUpdateFxjA3 = true
            this.$nextTick(() => {
              this.$refs.FXJA3.test(id)
            })
          }else
          {
            this.addOrUpdateFxjA4 = true
            this.$nextTick(() => {
              this.$refs.FXJA4.test(id)
            })
          }
        }else if((nian == 2003 && month >=7) || (nian > 2003 && nian < 2006) || (nian == 2006 && month <7))
        {
          this.addOrUpdateFxjA4 = true
          this.$nextTick(() => {
            this.$refs.FXJA4.test(id)
          })
        }else
        {
          this.addOrUpdateFxjA5 = true
          this.$nextTick(() => {
            this.$refs.FXJA5.test(id)
          })
        }
      }else
      {
        if(nian < 1985)
        {
          this.addOrUpdateFxjB1 = true
          this.$nextTick(() => {
            this.$refs.FXJB1.test(id)
          })
        }else if(((nian >= 1985 && nian <1993)) || ((nian == 1993 && month <10)))
        {
          this.addOrUpdateFxjB2 = true
          this.$nextTick(() => {
            this.$refs.FXJB2.test(id)
          })
        }else if((nian == 1993 && month >=10) || (nian >1993 && nian <2003) || (nian == 2003 && month <7))
        {
          if(txqsf == "职员" && dybz == '机关职员标准')
          {
            this.addOrUpdateFxjB3 = true
            this.$nextTick(() => {
              this.$refs.FXJB3.test(id)
            })
          }else
          {
            this.addOrUpdateFxjB4 = true
            this.$nextTick(() => {
              this.$refs.FXJB4.test(id)
            })
          }
        }else if((nian == 2003 && month >=7) || (nian > 2003 && nian < 2006) || (nian == 2006 && month <7))
        {
          this.addOrUpdateFxjB4 = true
          this.$nextTick(() => {
            this.$refs.FXJB4.test(id)
          })
        }else
        {
          this.addOrUpdateFxjB5 = true
          this.$nextTick(() => {
            this.$refs.FXJB5.test(id)
          })
        }
      }      
    },
    download() {
      this.sfxs = "";
      if (this.dataForm.id) {
          var data = {
              title:'（1985年工改前退休人员xxx）',
              // id: this.dataForm.id || undefined,
              areaCode: this.dataForm.areaCode,
              personalCode: this.dataForm.personalCode,
              name: this.dataForm.name,
              sex: this.dataForm.sex,
              nation: this.dataForm.nation,
              politicalFace: this.dataForm.politicalFace,
              idNo: this.dataForm.idNo,
              birthDate: this.dataForm.birthDate,
              workTime: this.dataForm.workTime,
              txsj: this.dataForm.retirementTime,
              retirementStatus: this.dataForm.retirementStatus,
              duties: this.dataForm.duties,
              county: this.dataForm.county,
              street: this.dataForm.street,
              community: this.dataForm.community,
              ybd: this.dataForm.originalTroops,
              yjsj: this.dataForm.handoverPeriod,
              handoverTime: this.dataForm.handoverTime,
              handoverMode: this.dataForm.handoverMode,
              handoverBatch: this.dataForm.handoverBatch,
              workersClassification: this.dataForm.workersClassification,
              reception: this.dataForm.reception,
              myStatus: this.dataForm.myStatus,
              inOutTime: this.dataForm.inOutTime,
              deathTime: this.dataForm.deathTime,
              housingSituation: this.dataForm.housingSituation,
              housingPropertyRight: this.dataForm.housingPropertyRight,
              leaseholder: this.dataForm.leaseholder,
              housingArea: this.dataForm.housingArea,
              increasePension: 0.0,
              totalMonthlyPension: this.dataForm.totalMonthlyPension,
              death: this.dataForm.death,
              workUnit: this.dataForm.workUnit,
              address: this.dataForm.address,
              phone: this.dataForm.phone,
              remarks: this.dataForm.remarks,
              workYears: this.dataForm.workingYears,
              yuYue: this.dataForm.yuYue,
              jdgznx: this.dataForm.workingYearsArmy,
              jl: this.dataForm.teachingAge,
              wageLevel: this.dataForm.wageLevel,
              wageGrade: this.dataForm.wageGrade,
              wageScale: this.dataForm.wageScale,
              treatmentStandard: this.dataForm.treatmentStandard,
              personnelClassification: this.dataForm.personnelClassification,
              enjoyAllowance: this.dataForm.enjoyAllowance,
              specialAllowance: this.dataForm.specialAllowance,
              increaseProportion: this.dataForm.increaseProportion,
              renson: this.dataForm.renson,
              allowanceRatio: this.dataForm.allowanceRatio,
              postLevel: this.dataForm.postLevel,
              salary: this.dataForm.salary,
              isImprove: this.dataForm.isImprove,
              jbtxfjfbl: this.dataForm.retirementFeeProportion,
              glgz: this.dataForm.senioritySalary,
              jcgz: this.dataForm.basicSalary,
              jbgz: this.dataForm.levelSalary,
              gwbzgz: this.dataForm.gradeSalary,
              xjgz: this.dataForm.salaryScale,
              jjjt: this.dataForm.bonusAllowance,
              jdfwjt: this.dataForm.serviceAllowance,
              jhljt: this.dataForm.seniorityAllowance,
              totalSubsidy: this.dataForm.totalSubsidy,
              tjjsqtjt: this.dataForm.specialTeacherSubsidy,
              knbz: this.dataForm.difficultySubsidy,
              gztg: this.dataForm.raiseWages,
              zjtxfA: this.dataForm.retirementPayEightynine,
              tgtxfB: this.dataForm.retirementPayNinetytwo,
              zjtxfI: this.dataForm.retirementPayFirst,
              zjtxfJ: this.dataForm.retirementPaySecond,
              zjtxfC: this.dataForm.retirementPayNinetyfive,
              zjtxfK: this.dataForm.retirementPayNinetyseven,
              zjtxfD: this.dataForm.retirementPayNinetysesec,
              zjtxfL: this.dataForm.retirementPayNinetynine,
              zjtxfF: this.dataForm.retirementPayNinetynisec,
              zjtxfR: this.dataForm.retirementPayZero,
              zjtxfM: this.dataForm.retirementPayOne,
              zjtxfN: this.dataForm.retirementPayOnenew,
              zjtxfE: this.dataForm.retirementPayOnsec,
              zjtxfO: this.dataForm.retirementPayThird,
              zjtxfG: this.dataForm.retirementPayThisec,
              zjtxfH: this.dataForm.retirementPayFive,
              zjtxfP: this.dataForm.retirementPaySix,
              fsbtA: this.dataForm.foodAllowanceSeventynine,
              fsbtB: this.dataForm.foodAllowanceEightyeight,
              lybtA: this.dataForm.oilAllowanceNightyone,
              lybtB: this.dataForm.oilAllowanceNightytwo,
              rlbtA: this.dataForm.fuelLlowance,
              rcbtA: this.dataForm.meatLlowance,
              lybtC: this.dataForm.oilAllowanceNightythird,
              shbtA: this.dataForm.livingAllowanceEightyfive,
              shbtB: this.dataForm.livingAllowanceEightyei,
              shbtC: this.dataForm.livingAllowanceNightytw,
              shbtD: this.dataForm.livingAllowanceNightyfo,
              shbtE: this.dataForm.livingAllowanceNightyfive,
              livingAllowanceNightysix: this.dataForm.livingAllowanceNightysix,
              livingAllowanceNightysev: this.dataForm.livingAllowanceNightysev,
              livingAllowanceNightyeig: this.dataForm.livingAllowanceNightyeig,
              livingAllowanceNightynig: this.dataForm.livingAllowanceNightynig,
              livingAllowanceZero: this.dataForm.livingAllowanceZero,
              livingAllowanceOne: this.dataForm.livingAllowanceOne,
              livingAllowanceTwo: this.dataForm.livingAllowanceTwo,
              livingAllowanceThird: this.dataForm.livingAllowanceThird,
              livingAllowanceFour: this.dataForm.livingAllowanceFour,
              zjshbtA: this.dataForm.livingAllowanceSeven,
              specialGoveAllowanc: this.dataForm.specialGoveAllowanc,
              sbf: this.dataForm.paperMoney,
              zfbt: this.dataForm.housingSubsidy,
              xlf: this.dataForm.bathSubsidy,
              ryjt: this.dataForm.honorAllowance,
              qtsr: this.dataForm.otherIncome,
              zwbtA: this.dataForm.jobSubsidy,
              nlbtA: this.dataForm.ageAllowance,
              holidaySubsidy: this.dataForm.holidaySubsidy,
              txbtA: this.dataForm.retirementAllowanceOneo,
              growthMechanismSubsidy: this.dataForm.growthMechanismSubsidy,
              gznxbt: this.dataForm.workingYearsSubsidy,
              tgblbt: this.dataForm.proportionalSubsidy,
              txbtB: this.dataForm.retirementAllowanceOneth,
              zzjzbtA: this.dataForm.growthMechanismThirty,
              txbtC: this.dataForm.retirementAllowanceThirty,
              zjtxfQ: this.dataForm.retirementPayFourty,
              logoutDate: this.dataForm.logoutDate,
              heatingSubsidy: this.dataForm.heatingSubsidy,
              wyfwbt: this.dataForm.serviceSubsidy,
              zjyljA: this.dataForm.pensionSixteen,
              zjyljB: this.dataForm.pensionSeventeen,
              zjyljC: this.dataForm.pensionEighteen,
              zjyljD: this.dataForm.pensionNineteen,
              tzdyA: this.dataForm.adjustTreatment,
              basicPension: this.dataForm.basicPension,
              zjyljF: this.dataForm.pensionTwenty,
              zjyljE: this.dataForm.pensionTwentyone,
              jbtxfzkhj:this.resultA,
              lczjtxfhj:this.resultB,
              jgshbthj: this.resultC,
              zjshjzhj: this.resultF,
              qthj: this.resultG,
              zdsctxf: this.resultH,
              ext1:this.dataForm.ext1,
              state:0
            }
       
          // this.$http({
          //   url: this.$http.adornUrl(
          //     `/jxxm/retiredemployees/info/${this.dataForm.id}`
          //   ),
          //   method: "get",
          //   params: this.$http.adornParams(),
          // }).then(({ data }) => {
          //   if (data && data.code === 0) {
              
          //    	exportDocx("../static/assets/demp.docx", data, `脚本.docx`);
          //   }
          // });
          var reVal = this.dataForm.retirementTime;
          var txqsf = this.dataForm.retirementStatus;
          var dybz = this.dataForm.treatmentStandard;

          let nian = parseInt(reVal.substring(0, 4));
          let month = parseInt(reVal.substring(5, 7));

          if(nian < 1985)
          {
                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf1.docx", data, `退休费.docx`);
                  
          }else if(nian >= 1985 && nian <1993)
          {
                 exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf2.docx", data, `退休费.docx`);
          }else if(nian == 1993 && month <10)
          {
                exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf2.docx", data, `退休费.docx`);
          }else if(nian == 1993 && month >=10)
          {
               if(txqsf == "职员" && dybz == '机关职员标准')
               {
                   exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf3.docx", data, `退休费.docx`);
               }else
               {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf4.docx", data, `退休费.docx`);
               }
               
          }else if(nian >1993 && nian <2003)
          {    if(txqsf == "职员" && dybz == '机关职员标准')
               {
                   exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf3.docx", data, `退休费.docx`);
               }else
               {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf4.docx", data, `退休费.docx`);
               }

          }else if(nian == 2003 && month <7)
          {
              if(txqsf == "职员" && dybz == '机关职员标准')
               {
                   exportDocx(window.SITE_CONFIG.cdnUrl +  "/static/assets/txf3.docx", data, `退休费.docx`);
               }else
               {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf4.docx", data, `退休费.docx`);
               }
          }else if(nian == 2003 && month >=7)
          {
                exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf4.docx", data, `退休费.docx`);
          }else if(nian > 2003 && nian < 2006)
          {
                exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf4.docx", data, `退休费.docx`);
          }
          else if(nian == 2006 && month <7)
          {
              exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf4.docx", data, `退休费.docx`);
          }else
          {
              exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/txf5.docx", data, `退休费.docx`);
          }
          
        }    
		},
     downloadDeath() {
    //获取上一年度全国城镇居民人均可支配收入
      var rjkzpsrbz = 0;
      var deDate = this.dataForm.deathTime;
      var deNian = parseInt(deDate.substring(0, 4));
      this.$http({
      url: this.$http.adornUrl('/jxxm/incomestandard/list'),
      method: 'get',
      params: this.$http.adornParams({
        'page': this.pageIndex,
        'limit': this.pageSize,
        'nd': deNian
        })
      }).then(({data}) => {
        if (data && data.code === 0) {
          this.dataList = data.page.list
          console.log(this.dataList)
          if(this.dataList.length == 0)
          {
            rjkzpsrbz = 0;
          }else
          {
             rjkzpsrbz = this.dataList[0].rjkzpsrbz;
          }
          

          var deathTime = this.dataForm.deathTime;
          var deathNian = parseInt(deathTime.substring(0, 4));
          var deathMonth = parseInt(deathTime.substring(5, 7));

          var reVal = this.dataForm.retirementTime;
          var txqsf = this.dataForm.retirementStatus;
          var dybz = this.dataForm.treatmentStandard;
          var nian = parseInt(reVal.substring(0, 4));
          var month = parseInt(reVal.substring(5, 7));

          let txfjfbl = this.dataForm.retirementFeeProportion;//退休费计发比例
          let tgblbf = this.dataForm.increaseProportion;//提高比例部分
          let gzsftg = this.dataForm.isImprove//工资是否提高10%
          let gzsftgValue = '';
          if(txfjfbl === null || txfjfbl === "")
          {
            txfjfbl = 0;
          }
          if(tgblbf === null || tgblbf === "")
          {
            tgblbf = 0;
          }
          if(gzsftg == "是")
          {
              gzsftgValue = 10;
          }else{
            gzsftgValue = 0
          }
          txfjfbl = parseFloat(txfjfbl)+parseFloat(tgblbf)+parseFloat(gzsftgValue);
          

          if(deathNian<2011 || (deathNian == 2011 && deathMonth <8))
          {
              if(nian < 1985)
              { 
                //退休费基数向上取整
                //var sumTxfjs =0
                //sumTxfjs = Math.ceil(this.resultA);
                let senioritySalary = this.dataForm.senioritySalary; //工龄工资
                let difficultySubsidy = this.dataForm.difficultySubsidy; //困难补助
                let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                let sumBasicRe = 0;
                
                if (gradeSalary !== "" && gradeSalary !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                }
                let bl = parseFloat(txfjfbl)/100;
                sumBasicRe = sumBasicRe * bl;

                if (difficultySubsidy !== "" && difficultySubsidy !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(difficultySubsidy);
                }
                if (senioritySalary !== "" && senioritySalary !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(senioritySalary);
                }
                
                var newResultA = Math.ceil(sumBasicRe)

                //重新计算历次增加的退休费合计
                var lczjtxfhjsl = 0
                var resultB = this.resultB;
                var zjtxfR = this.dataForm.retirementPayZero;
                lczjtxfhjsl = parseFloat(resultB)+parseFloat(zjtxfR);
                

                //重新计算价格生活补贴合计
                var jgshbthjsl = 0;
                var fsbtA = this.dataForm.foodAllowanceSeventynine;//1979年副食补贴
                var lybtA = this.dataForm.oilAllowanceNightyone;//1991年粮油补贴
                var shbtA = this.dataForm.livingAllowanceEightyfive;//1985年生活补贴
                jgshbthjsl = parseFloat(fsbtA)+parseFloat(lybtA)+parseFloat(shbtA);

                //重新计算退休费合计
                var zdsctxfsl =  0;
                var resultA = newResultA;
                var resultD = this.resultD;
                zdsctxfsl = parseFloat(resultA)+parseFloat(jgshbthjsl)+parseFloat(resultD)+parseFloat(lczjtxfhjsl);

                //抚恤金合计
                var fxjSum = 0;
                fxjSum = parseFloat(zdsctxfsl)*20 + 5000;

                //转大写
                var money = fxjSum;
                var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                var cnIntRadice = ['', '拾', '佰', '仟']
                var cnIntUnits = ['', '万', '亿', '兆']
                var cnDecUnits = ['角', '分', '毫', '厘']
                var cnInteger = '整'
                var cnIntLast = '元'
                var maxNum = 999999999999999.9999
                var integerNum
                var decimalNum
                var chineseStr = ''
                var parts
                if (money === '') {
                  return ''
                }
                money = parseFloat(money)
                if (money >= maxNum) {
                  return ''
                }
                if (money === 0) {
                  chineseStr = cnNums[0] + cnIntLast + cnInteger
                  return chineseStr
                }
                money = money.toString()
                if (money.indexOf('.') === -1) {
                  integerNum = money
                  decimalNum = ''
                } else {
                  parts = money.split('.')
                  integerNum = parts[0]
                  decimalNum = parts[1].substr(0, 4)
                }
                if (parseInt(integerNum, 10) > 0) {
                  var zeroCount = 0
                  var IntLen = integerNum.length
                  for (var i = 0; i < IntLen; i++) {
                    var n = integerNum.substr(i, 1)
                    var p = IntLen - i - 1
                    var q = p / 4
                    var m = p % 4
                    if (n === '0') {
                      zeroCount++
                    } else {
                      if (zeroCount > 0) {
                        chineseStr += cnNums[0]
                      }
                      zeroCount = 0
                      chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                    }
                    if (m === 0 && zeroCount < 4) {
                      chineseStr += cnIntUnits[q]
                    }
                  }
                  chineseStr += cnIntLast
                }
                if (decimalNum !== '') {
                  var decLen = decimalNum.length
                  for (i = 0; i < decLen; i++) {
                    n = decimalNum.substr(i, 1)
                    if (n !== '0') {
                      chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                    }
                  }
                }
                if (chineseStr === '') {
                  chineseStr += cnNums[0] + cnIntLast + cnInteger
                } else if (decimalNum === '') {
                  chineseStr += cnInteger
                }

              }else if(((nian >= 1985 && nian <1993)) || ((nian == 1993 && month <10)))
              {
                //退休费基数向上取整
                //var sumTxfjs =0
                //sumTxfjs = Math.ceil(this.resultA);
                let senioritySalary = this.dataForm.senioritySalary; //工龄工资
                let basicSalary = this.dataForm.basicSalary; //基础工资
                let difficultySubsidy = this.dataForm.difficultySubsidy; //困难补助
                let seniorityAllowance = this.dataForm.seniorityAllowance; //教护龄津贴

                let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                let raiseWages = this.dataForm.raiseWages; //提高工资10%
                let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴

                let sumBasicRe = 0;
                if (raiseWages !== "" && raiseWages !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(raiseWages);
                }
                if (serviceAllowance !== "" && serviceAllowance !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
                }
                if (gradeSalary !== "" && gradeSalary !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                }
                
                let bl = parseFloat(txfjfbl)/100;
                sumBasicRe = sumBasicRe * bl;
                if (basicSalary !== "" && basicSalary !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(basicSalary);
                }
                if (difficultySubsidy !== "" && difficultySubsidy !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(difficultySubsidy);
                }
                if (senioritySalary !== "" && senioritySalary !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(senioritySalary);
                }
                if (seniorityAllowance !== "" && seniorityAllowance !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(seniorityAllowance);
                }                
                var newResultA = Math.ceil(sumBasicRe)


                //重新计算历次增加的退休费合计
                var lczjtxfhjsl = 0
                var resultB = this.resultB;
                var zjtxfR = this.dataForm.retirementPayZero;
                lczjtxfhjsl = parseFloat(resultB)+parseFloat(zjtxfR);
                

                //重新计算价格生活补贴合计
                var jgshbthjsl = 0;
                var lybtA = this.dataForm.oilAllowanceNightyone;//1991年粮油补贴
                jgshbthjsl = parseFloat(lybtA);

                //重新计算退休费合计
                var zdsctxfsl =  0;
                var resultA = newResultA;
                var resultD = this.resultD;
                zdsctxfsl = parseFloat(resultA)+parseFloat(jgshbthjsl)+parseFloat(resultD)+parseFloat(lczjtxfhjsl);

                //抚恤金合计
                var fxjSum = 0;
                fxjSum = parseFloat(zdsctxfsl)*20 + 5000;

                //转大写
                var money = fxjSum;
                var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                var cnIntRadice = ['', '拾', '佰', '仟']
                var cnIntUnits = ['', '万', '亿', '兆']
                var cnDecUnits = ['角', '分', '毫', '厘']
                var cnInteger = '整'
                var cnIntLast = '元'
                var maxNum = 999999999999999.9999
                var integerNum
                var decimalNum
                var chineseStr = ''
                var parts
                if (money === '') {
                  return ''
                }
                money = parseFloat(money)
                if (money >= maxNum) {
                  return ''
                }
                if (money === 0) {
                  chineseStr = cnNums[0] + cnIntLast + cnInteger
                  return chineseStr
                }
                money = money.toString()
                if (money.indexOf('.') === -1) {
                  integerNum = money
                  decimalNum = ''
                } else {
                  parts = money.split('.')
                  integerNum = parts[0]
                  decimalNum = parts[1].substr(0, 4)
                }
                if (parseInt(integerNum, 10) > 0) {
                  var zeroCount = 0
                  var IntLen = integerNum.length
                  for (var i = 0; i < IntLen; i++) {
                    var n = integerNum.substr(i, 1)
                    var p = IntLen - i - 1
                    var q = p / 4
                    var m = p % 4
                    if (n === '0') {
                      zeroCount++
                    } else {
                      if (zeroCount > 0) {
                        chineseStr += cnNums[0]
                      }
                      zeroCount = 0
                      chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                    }
                    if (m === 0 && zeroCount < 4) {
                      chineseStr += cnIntUnits[q]
                    }
                  }
                  chineseStr += cnIntLast
                }
                if (decimalNum !== '') {
                  var decLen = decimalNum.length
                  for (i = 0; i < decLen; i++) {
                    n = decimalNum.substr(i, 1)
                    if (n !== '0') {
                      chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                    }
                  }
                }
                if (chineseStr === '') {
                  chineseStr += cnNums[0] + cnIntLast + cnInteger
                } else if (decimalNum === '') {
                  chineseStr += cnInteger
                }

              }else if((nian == 1993 && month >=10) || (nian >1993 && nian <2003) || (nian == 2003 && month <7))
              {
                    if(txqsf == "职员" && dybz == '机关职员标准')
                    {

                        //退休费基数重新计算
                        let senioritySalary = this.dataForm.senioritySalary; //工龄工资
                        let basicSalary = this.dataForm.basicSalary; //基础工资

                        let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                        let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴
                        let levelSalary = this.dataForm.levelSalary; //级别工资
                        let bonusAllowance = this.dataForm.bonusAllowance; //奖金津贴
                        let sumBasicRe = 0;

                        if (serviceAllowance !== "" && serviceAllowance !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
                        }
                        if (gradeSalary !== "" && gradeSalary !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                        }
                        if (levelSalary !== "" && levelSalary !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(levelSalary);
                        }
                        if (bonusAllowance !== "" && bonusAllowance !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(bonusAllowance);
                        }
                        let bl = parseFloat(txfjfbl)/100;
                        sumBasicRe = sumBasicRe * bl;

                        if (basicSalary !== "" && basicSalary !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(basicSalary);
                        }
                        if (senioritySalary !== "" && senioritySalary !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(senioritySalary);
                        }
                        
                        var newResultA = Math.ceil(sumBasicRe)

                        var jbtxfzkhjsl = 0;
                        var resultA = newResultA;
                        var zwbt = this.dataForm.totalSubsidy;
                        jbtxfzkhjsl = parseFloat(resultA) + parseFloat(zwbt)
                        

                        //重新计算历次增加的退休费合计
                        var lczjtxfhjsl = 0
                        var resultB = this.resultB;
                        var zjtxfR = this.dataForm.retirementPayZero;
                        lczjtxfhjsl = parseFloat(resultB)+parseFloat(zjtxfR);
                        

                        //重新计算价格生活补贴合计
                        var jgshbthjsl = 0;
                      

                        //重新计算退休费合计
                        var zdsctxfsl =  0;
                        var resultD = this.resultD;
                        zdsctxfsl = parseFloat(jbtxfzkhjsl)+parseFloat(jgshbthjsl)+parseFloat(resultD)+parseFloat(lczjtxfhjsl);

                        //抚恤金合计
                        var fxjSum = 0;
                        fxjSum = parseFloat(zdsctxfsl)*20 + 5000;

                        //转大写
                        var money = fxjSum;
                        var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                        var cnIntRadice = ['', '拾', '佰', '仟']
                        var cnIntUnits = ['', '万', '亿', '兆']
                        var cnDecUnits = ['角', '分', '毫', '厘']
                        var cnInteger = '整'
                        var cnIntLast = '元'
                        var maxNum = 999999999999999.9999
                        var integerNum
                        var decimalNum
                        var chineseStr = ''
                        var parts
                        if (money === '') {
                          return ''
                        }
                        money = parseFloat(money)
                        if (money >= maxNum) {
                          return ''
                        }
                        if (money === 0) {
                          chineseStr = cnNums[0] + cnIntLast + cnInteger
                          return chineseStr
                        }
                        money = money.toString()
                        if (money.indexOf('.') === -1) {
                          integerNum = money
                          decimalNum = ''
                        } else {
                          parts = money.split('.')
                          integerNum = parts[0]
                          decimalNum = parts[1].substr(0, 4)
                        }
                        if (parseInt(integerNum, 10) > 0) {
                          var zeroCount = 0
                          var IntLen = integerNum.length
                          for (var i = 0; i < IntLen; i++) {
                            var n = integerNum.substr(i, 1)
                            var p = IntLen - i - 1
                            var q = p / 4
                            var m = p % 4
                            if (n === '0') {
                              zeroCount++
                            } else {
                              if (zeroCount > 0) {
                                chineseStr += cnNums[0]
                              }
                              zeroCount = 0
                              chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                            }
                            if (m === 0 && zeroCount < 4) {
                              chineseStr += cnIntUnits[q]
                            }
                          }
                          chineseStr += cnIntLast
                        }
                        if (decimalNum !== '') {
                          var decLen = decimalNum.length
                          for (i = 0; i < decLen; i++) {
                            n = decimalNum.substr(i, 1)
                            if (n !== '0') {
                              chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                            }
                          }
                        }
                        if (chineseStr === '') {
                          chineseStr += cnNums[0] + cnIntLast + cnInteger
                        } else if (decimalNum === '') {
                          chineseStr += cnInteger
                        }
                    }else
                    {
                        //退休费基数重新计算
                        let seniorityAllowance = this.dataForm.seniorityAllowance; //教护龄津贴

                        let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                        let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴
                        let raiseWages = this.dataForm.raiseWages; //提高工资10%
                        let bonusAllowance = this.dataForm.bonusAllowance; //奖金津贴

                        let sumBasicRe = 0;
                       
                        if (raiseWages !== "" && raiseWages !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(raiseWages);
                        }
                        if (serviceAllowance !== "" && serviceAllowance !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
                        }
                        if (gradeSalary !== "" && gradeSalary !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                        }
                        if (bonusAllowance !== "" && bonusAllowance !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(bonusAllowance);
                        }
                        let bl = parseFloat(txfjfbl)/100;  
                        sumBasicRe = sumBasicRe * bl;

                        if (seniorityAllowance !== "" && seniorityAllowance !== null) {
                          sumBasicRe = sumBasicRe + parseFloat(seniorityAllowance);
                        }
                        var newResultA = Math.ceil(sumBasicRe)

                        var jbtxfzkhjsl = 0;
                        var resultA = newResultA;
                        var zwbt = this.dataForm.totalSubsidy;
                        jbtxfzkhjsl = parseFloat(resultA) + parseFloat(zwbt)
                        

                        //重新计算历次增加的退休费合计
                        var lczjtxfhjsl = 0
                        var resultB = this.resultB;
                        var zjtxfR = this.dataForm.retirementPayZero;
                        lczjtxfhjsl = parseFloat(resultB)+parseFloat(zjtxfR);
                        

                        //重新计算价格生活补贴合计
                        var jgshbthjsl = 0;
                      

                        //重新计算退休费合计
                        var zdsctxfsl =  0;
                        var resultD = this.resultD;
                        zdsctxfsl = parseFloat(jbtxfzkhjsl)+parseFloat(jgshbthjsl)+parseFloat(resultD)+parseFloat(lczjtxfhjsl);

                        //抚恤金合计
                        var fxjSum = 0;
                        fxjSum = parseFloat(zdsctxfsl)*20 + 5000;

                        //转大写
                        var money = fxjSum;
                        var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                        var cnIntRadice = ['', '拾', '佰', '仟']
                        var cnIntUnits = ['', '万', '亿', '兆']
                        var cnDecUnits = ['角', '分', '毫', '厘']
                        var cnInteger = '整'
                        var cnIntLast = '元'
                        var maxNum = 999999999999999.9999
                        var integerNum
                        var decimalNum
                        var chineseStr = ''
                        var parts
                        if (money === '') {
                          return ''
                        }
                        money = parseFloat(money)
                        if (money >= maxNum) {
                          return ''
                        }
                        if (money === 0) {
                          chineseStr = cnNums[0] + cnIntLast + cnInteger
                          return chineseStr
                        }
                        money = money.toString()
                        if (money.indexOf('.') === -1) {
                          integerNum = money
                          decimalNum = ''
                        } else {
                          parts = money.split('.')
                          integerNum = parts[0]
                          decimalNum = parts[1].substr(0, 4)
                        }
                        if (parseInt(integerNum, 10) > 0) {
                          var zeroCount = 0
                          var IntLen = integerNum.length
                          for (var i = 0; i < IntLen; i++) {
                            var n = integerNum.substr(i, 1)
                            var p = IntLen - i - 1
                            var q = p / 4
                            var m = p % 4
                            if (n === '0') {
                              zeroCount++
                            } else {
                              if (zeroCount > 0) {
                                chineseStr += cnNums[0]
                              }
                              zeroCount = 0
                              chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                            }
                            if (m === 0 && zeroCount < 4) {
                              chineseStr += cnIntUnits[q]
                            }
                          }
                          chineseStr += cnIntLast
                        }
                        if (decimalNum !== '') {
                          var decLen = decimalNum.length
                          for (i = 0; i < decLen; i++) {
                            n = decimalNum.substr(i, 1)
                            if (n !== '0') {
                              chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                            }
                          }
                        }
                        if (chineseStr === '') {
                          chineseStr += cnNums[0] + cnIntLast + cnInteger
                        } else if (decimalNum === '') {
                          chineseStr += cnInteger
                        }
                    }
              }else if((nian == 2003 && month >=7) || (nian > 2003 && nian < 2006) || (nian == 2006 && month <7))
              {
                  //退休费基数重新计算
                  let seniorityAllowance = this.dataForm.seniorityAllowance; //教护龄津贴

                  let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                  let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴
                  let raiseWages = this.dataForm.raiseWages; //提高工资10%
                  let bonusAllowance = this.dataForm.bonusAllowance; //奖金津贴

                  let sumBasicRe = 0;
                  
                  if (raiseWages !== "" && raiseWages !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(raiseWages);
                  }
                  if (serviceAllowance !== "" && serviceAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
                  }
                  if (gradeSalary !== "" && gradeSalary !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                  }
                  if (bonusAllowance !== "" && bonusAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(bonusAllowance);
                  }
                  let bl = parseFloat(txfjfbl)/100;  
                  sumBasicRe = sumBasicRe * bl;

                  if (seniorityAllowance !== "" && seniorityAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(seniorityAllowance);
                  }
                  var newResultA = Math.ceil(sumBasicRe)

                  var jbtxfzkhjsl = 0;
                  var resultA = newResultA;
                  var zwbt = this.dataForm.totalSubsidy;
                  jbtxfzkhjsl = parseFloat(resultA) + parseFloat(zwbt)
                  

                  //重新计算历次增加的退休费合计
                  var lczjtxfhjsl = 0
                  var resultB = this.resultB;
                  var zjtxfR = this.dataForm.retirementPayZero;
                  lczjtxfhjsl = parseFloat(resultB)+parseFloat(zjtxfR);
                  

                  //重新计算价格生活补贴合计
                  var jgshbthjsl = 0;
                  

                  //重新计算退休费合计
                  var zdsctxfsl =  0;
                  var resultD = this.resultD;
                  zdsctxfsl = parseFloat(jbtxfzkhjsl)+parseFloat(jgshbthjsl)+parseFloat(resultD)+parseFloat(lczjtxfhjsl);

                  //抚恤金合计
                  var fxjSum = 0;
                  fxjSum = parseFloat(zdsctxfsl)*20 + 5000;

                  //转大写
                  var money = fxjSum;
                  var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                  var cnIntRadice = ['', '拾', '佰', '仟']
                  var cnIntUnits = ['', '万', '亿', '兆']
                  var cnDecUnits = ['角', '分', '毫', '厘']
                  var cnInteger = '整'
                  var cnIntLast = '元'
                  var maxNum = 999999999999999.9999
                  var integerNum
                  var decimalNum
                  var chineseStr = ''
                  var parts
                  if (money === '') {
                    return ''
                  }
                  money = parseFloat(money)
                  if (money >= maxNum) {
                    return ''
                  }
                  if (money === 0) {
                    chineseStr = cnNums[0] + cnIntLast + cnInteger
                    return chineseStr
                  }
                  money = money.toString()
                  if (money.indexOf('.') === -1) {
                    integerNum = money
                    decimalNum = ''
                  } else {
                    parts = money.split('.')
                    integerNum = parts[0]
                    decimalNum = parts[1].substr(0, 4)
                  }
                  if (parseInt(integerNum, 10) > 0) {
                    var zeroCount = 0
                    var IntLen = integerNum.length
                    for (var i = 0; i < IntLen; i++) {
                      var n = integerNum.substr(i, 1)
                      var p = IntLen - i - 1
                      var q = p / 4
                      var m = p % 4
                      if (n === '0') {
                        zeroCount++
                      } else {
                        if (zeroCount > 0) {
                          chineseStr += cnNums[0]
                        }
                        zeroCount = 0
                        chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                      }
                      if (m === 0 && zeroCount < 4) {
                        chineseStr += cnIntUnits[q]
                      }
                    }
                    chineseStr += cnIntLast
                  }
                  if (decimalNum !== '') {
                    var decLen = decimalNum.length
                    for (i = 0; i < decLen; i++) {
                      n = decimalNum.substr(i, 1)
                      if (n !== '0') {
                        chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                      }
                    }
                  }
                  if (chineseStr === '') {
                    chineseStr += cnNums[0] + cnIntLast + cnInteger
                  } else if (decimalNum === '') {
                    chineseStr += cnInteger
                  }
              }else
              {
                  //退休费基数重新计算
                  let seniorityAllowance = this.dataForm.seniorityAllowance; //教护龄津贴

                  let salaryScale = this.dataForm.salaryScale; //薪级工资
                  let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴
                  let raiseWages = this.dataForm.raiseWages; //提高工资10%
                  let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                  let sumBasicRe = 0;
                  
                  if (raiseWages !== "" && raiseWages !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(raiseWages);
                  }
                  if (serviceAllowance !== "" && serviceAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
                  }
                  if (salaryScale !== "" && salaryScale !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(salaryScale);
                  }
                  if (gradeSalary !== "" && gradeSalary !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                  }
                  let bl = parseFloat(txfjfbl)/100;  
                  sumBasicRe = sumBasicRe * bl;

                  if (seniorityAllowance !== "" && seniorityAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(seniorityAllowance);
                  }
                  var newResultA = Math.ceil(sumBasicRe)



                  var jbtxfzkhjsl = 0;
                  var resultA = newResultA;
                  var zwbt = this.dataForm.totalSubsidy;
                  jbtxfzkhjsl = parseFloat(resultA) + parseFloat(zwbt)
                  

                  //重新计算历次增加的退休费合计
                  var lczjtxfhjsl = 0
              

                  //重新计算价格生活补贴合计
                  var jgshbthjsl = 0;
                  

                  //重新计算退休费合计
                  var zdsctxfsl =  0;
                  var resultB = this.resultB;
                  var resultD = this.resultD;
                  zdsctxfsl = parseFloat(jbtxfzkhjsl)+parseFloat(jgshbthjsl)+parseFloat(resultD)+parseFloat(resultB);

                  //抚恤金合计
                  var fxjSum = 0;
                  fxjSum = parseFloat(zdsctxfsl)*20 + 5000;

                  //转大写
                  var money = fxjSum;
                  var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                  var cnIntRadice = ['', '拾', '佰', '仟']
                  var cnIntUnits = ['', '万', '亿', '兆']
                  var cnDecUnits = ['角', '分', '毫', '厘']
                  var cnInteger = '整'
                  var cnIntLast = '元'
                  var maxNum = 999999999999999.9999
                  var integerNum
                  var decimalNum
                  var chineseStr = ''
                  var parts
                  if (money === '') {
                    return ''
                  }
                  money = parseFloat(money)
                  if (money >= maxNum) {
                    return ''
                  }
                  if (money === 0) {
                    chineseStr = cnNums[0] + cnIntLast + cnInteger
                    return chineseStr
                  }
                  money = money.toString()
                  if (money.indexOf('.') === -1) {
                    integerNum = money
                    decimalNum = ''
                  } else {
                    parts = money.split('.')
                    integerNum = parts[0]
                    decimalNum = parts[1].substr(0, 4)
                  }
                  if (parseInt(integerNum, 10) > 0) {
                    var zeroCount = 0
                    var IntLen = integerNum.length
                    for (var i = 0; i < IntLen; i++) {
                      var n = integerNum.substr(i, 1)
                      var p = IntLen - i - 1
                      var q = p / 4
                      var m = p % 4
                      if (n === '0') {
                        zeroCount++
                      } else {
                        if (zeroCount > 0) {
                          chineseStr += cnNums[0]
                        }
                        zeroCount = 0
                        chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                      }
                      if (m === 0 && zeroCount < 4) {
                        chineseStr += cnIntUnits[q]
                      }
                    }
                    chineseStr += cnIntLast
                  }
                  if (decimalNum !== '') {
                    var decLen = decimalNum.length
                    for (i = 0; i < decLen; i++) {
                      n = decimalNum.substr(i, 1)
                      if (n !== '0') {
                        chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                      }
                    }
                  }
                  if (chineseStr === '') {
                    chineseStr += cnNums[0] + cnIntLast + cnInteger
                  } else if (decimalNum === '') {
                    chineseStr += cnInteger
                  }
              }
          }else
          {
              if(nian < 1985)
              {
                //退休费基数向上取整
                //var sumTxfjs =0
                //sumTxfjs = Math.ceil(this.resultA);
                let senioritySalary = this.dataForm.senioritySalary; //工龄工资
                let difficultySubsidy = this.dataForm.difficultySubsidy; //困难补助
                let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                let sumBasicRe = 0;
                
                if (gradeSalary !== "" && gradeSalary !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                }
                let bl = parseFloat(txfjfbl)/100;
                sumBasicRe = sumBasicRe * bl;

                if (difficultySubsidy !== "" && difficultySubsidy !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(difficultySubsidy);
                }
                if (senioritySalary !== "" && senioritySalary !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(senioritySalary);
                }
                
                var newResultA = Math.ceil(sumBasicRe)

                //重新计算退休费合计
                var zdsctxfsl =  0;
                var resultA = newResultA;
                var resultB = this.resultB;
                zdsctxfsl = parseFloat(resultA)+parseFloat(resultB);

                //抚恤金合计
                var fxjSum = 0;
                fxjSum = parseFloat(rjkzpsrbz)*2+parseFloat(zdsctxfsl)*40 + 5000;

                //转大写
                var money = fxjSum;
                var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                var cnIntRadice = ['', '拾', '佰', '仟']
                var cnIntUnits = ['', '万', '亿', '兆']
                var cnDecUnits = ['角', '分', '毫', '厘']
                var cnInteger = '整'
                var cnIntLast = '元'
                var maxNum = 999999999999999.9999
                var integerNum
                var decimalNum
                var chineseStr = ''
                var parts
                if (money === '') {
                  return ''
                }
                money = parseFloat(money)
                if (money >= maxNum) {
                  return ''
                }
                if (money === 0) {
                  chineseStr = cnNums[0] + cnIntLast + cnInteger
                  return chineseStr
                }
                money = money.toString()
                if (money.indexOf('.') === -1) {
                  integerNum = money
                  decimalNum = ''
                } else {
                  parts = money.split('.')
                  integerNum = parts[0]
                  decimalNum = parts[1].substr(0, 4)
                }
                if (parseInt(integerNum, 10) > 0) {
                  var zeroCount = 0
                  var IntLen = integerNum.length
                  for (var i = 0; i < IntLen; i++) {
                    var n = integerNum.substr(i, 1)
                    var p = IntLen - i - 1
                    var q = p / 4
                    var m = p % 4
                    if (n === '0') {
                      zeroCount++
                    } else {
                      if (zeroCount > 0) {
                        chineseStr += cnNums[0]
                      }
                      zeroCount = 0
                      chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                    }
                    if (m === 0 && zeroCount < 4) {
                      chineseStr += cnIntUnits[q]
                    }
                  }
                  chineseStr += cnIntLast
                }
                if (decimalNum !== '') {
                  var decLen = decimalNum.length
                  for (i = 0; i < decLen; i++) {
                    n = decimalNum.substr(i, 1)
                    if (n !== '0') {
                      chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                    }
                  }
                }
                if (chineseStr === '') {
                  chineseStr += cnNums[0] + cnIntLast + cnInteger
                } else if (decimalNum === '') {
                  chineseStr += cnInteger
                }
              }else if(((nian >= 1985 && nian <1993)) || ((nian == 1993 && month <10)))
              {
                //退休费基数向上取整
                //var sumTxfjs =0
                //sumTxfjs = Math.ceil(this.resultA);
                let senioritySalary = this.dataForm.senioritySalary; //工龄工资
                let basicSalary = this.dataForm.basicSalary; //基础工资
                let difficultySubsidy = this.dataForm.difficultySubsidy; //困难补助
                let seniorityAllowance = this.dataForm.seniorityAllowance; //教护龄津贴

                let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                let raiseWages = this.dataForm.raiseWages; //提高工资10%
                let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴

                let sumBasicRe = 0;
                if (raiseWages !== "" && raiseWages !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(raiseWages);
                }
                if (serviceAllowance !== "" && serviceAllowance !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
                }
                if (gradeSalary !== "" && gradeSalary !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                }
                
                let bl = parseFloat(txfjfbl)/100;
                sumBasicRe = sumBasicRe * bl;
                if (basicSalary !== "" && basicSalary !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(basicSalary);
                }
                if (difficultySubsidy !== "" && difficultySubsidy !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(difficultySubsidy);
                }
                if (senioritySalary !== "" && senioritySalary !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(senioritySalary);
                }
                if (seniorityAllowance !== "" && seniorityAllowance !== null) {
                  sumBasicRe = sumBasicRe + parseFloat(seniorityAllowance);
                }                
                var newResultA = Math.ceil(sumBasicRe)
                
                
                 //重新计算退休费合计
                var zdsctxfsl =  0;
                var resultA = newResultA;
                var resultB = this.resultB;
                zdsctxfsl = parseFloat(resultA)+parseFloat(resultB);
                
                //抚恤金合计
                var fxjSum = 0;
                fxjSum = parseFloat(rjkzpsrbz)*2+parseFloat(zdsctxfsl)*40 + 5000;

                //转大写
                var money = fxjSum;
                var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                var cnIntRadice = ['', '拾', '佰', '仟']
                var cnIntUnits = ['', '万', '亿', '兆']
                var cnDecUnits = ['角', '分', '毫', '厘']
                var cnInteger = '整'
                var cnIntLast = '元'
                var maxNum = 999999999999999.9999
                var integerNum
                var decimalNum
                var chineseStr = ''
                var parts
                if (money === '') {
                  return ''
                }
                money = parseFloat(money)
                if (money >= maxNum) {
                  return ''
                }
                if (money === 0) {
                  chineseStr = cnNums[0] + cnIntLast + cnInteger
                  return chineseStr
                }
                money = money.toString()
                if (money.indexOf('.') === -1) {
                  integerNum = money
                  decimalNum = ''
                } else {
                  parts = money.split('.')
                  integerNum = parts[0]
                  decimalNum = parts[1].substr(0, 4)
                }
                if (parseInt(integerNum, 10) > 0) {
                  var zeroCount = 0
                  var IntLen = integerNum.length
                  for (var i = 0; i < IntLen; i++) {
                    var n = integerNum.substr(i, 1)
                    var p = IntLen - i - 1
                    var q = p / 4
                    var m = p % 4
                    if (n === '0') {
                      zeroCount++
                    } else {
                      if (zeroCount > 0) {
                        chineseStr += cnNums[0]
                      }
                      zeroCount = 0
                      chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                    }
                    if (m === 0 && zeroCount < 4) {
                      chineseStr += cnIntUnits[q]
                    }
                  }
                  chineseStr += cnIntLast
                }
                if (decimalNum !== '') {
                  var decLen = decimalNum.length
                  for (i = 0; i < decLen; i++) {
                    n = decimalNum.substr(i, 1)
                    if (n !== '0') {
                      chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                    }
                  }
                }
                if (chineseStr === '') {
                  chineseStr += cnNums[0] + cnIntLast + cnInteger
                } else if (decimalNum === '') {
                  chineseStr += cnInteger
                }
              }else if((nian == 1993 && month >=10) || (nian >1993 && nian <2003) || (nian == 2003 && month <7))
              {
                if(txqsf == "职员" && dybz == '机关职员标准')
                {
                  //退休费基数向上取整
                  //var sumTxfjs =0
                  //sumTxfjs = Math.ceil(this.resultA);
                  let senioritySalary = this.dataForm.senioritySalary; //工龄工资
                  let basicSalary = this.dataForm.basicSalary; //基础工资

                  let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                  let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴
                  let levelSalary = this.dataForm.levelSalary; //级别工资
                  let bonusAllowance = this.dataForm.bonusAllowance; //奖金津贴
                  let sumBasicRe = 0;

                  if (serviceAllowance !== "" && serviceAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
                  }
                  if (gradeSalary !== "" && gradeSalary !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                  }
                  if (levelSalary !== "" && levelSalary !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(levelSalary);
                  }
                  if (bonusAllowance !== "" && bonusAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(bonusAllowance);
                  }
                  let bl = parseFloat(txfjfbl)/100;
                  sumBasicRe = sumBasicRe * bl;

                  if (basicSalary !== "" && basicSalary !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(basicSalary);
                  }
                  if (senioritySalary !== "" && senioritySalary !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(senioritySalary);
                  }
                  
                  var newResultA = Math.ceil(sumBasicRe)

                  //重新计算退休费合计
                  
                  var zdsctxfsl =  0;
                  var resultA = newResultA;
                  var resultB = this.resultB;
                  zdsctxfsl = parseFloat(resultA)+parseFloat(resultB);

                  //抚恤金合计
                  var fxjSum = 0;
                  fxjSum = parseFloat(rjkzpsrbz)*2+parseFloat(zdsctxfsl)*40 + 5000;

                  //转大写
                  var money = fxjSum;
                  var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                  var cnIntRadice = ['', '拾', '佰', '仟']
                  var cnIntUnits = ['', '万', '亿', '兆']
                  var cnDecUnits = ['角', '分', '毫', '厘']
                  var cnInteger = '整'
                  var cnIntLast = '元'
                  var maxNum = 999999999999999.9999
                  var integerNum
                  var decimalNum
                  var chineseStr = ''
                  var parts
                  if (money === '') {
                    return ''
                  }
                  money = parseFloat(money)
                  if (money >= maxNum) {
                    return ''
                  }
                  if (money === 0) {
                    chineseStr = cnNums[0] + cnIntLast + cnInteger
                    return chineseStr
                  }
                  money = money.toString()
                  if (money.indexOf('.') === -1) {
                    integerNum = money
                    decimalNum = ''
                  } else {
                    parts = money.split('.')
                    integerNum = parts[0]
                    decimalNum = parts[1].substr(0, 4)
                  }
                  if (parseInt(integerNum, 10) > 0) {
                    var zeroCount = 0
                    var IntLen = integerNum.length
                    for (var i = 0; i < IntLen; i++) {
                      var n = integerNum.substr(i, 1)
                      var p = IntLen - i - 1
                      var q = p / 4
                      var m = p % 4
                      if (n === '0') {
                        zeroCount++
                      } else {
                        if (zeroCount > 0) {
                          chineseStr += cnNums[0]
                        }
                        zeroCount = 0
                        chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                      }
                      if (m === 0 && zeroCount < 4) {
                        chineseStr += cnIntUnits[q]
                      }
                    }
                    chineseStr += cnIntLast
                  }
                  if (decimalNum !== '') {
                    var decLen = decimalNum.length
                    for (i = 0; i < decLen; i++) {
                      n = decimalNum.substr(i, 1)
                      if (n !== '0') {
                        chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                      }
                    }
                  }
                  if (chineseStr === '') {
                    chineseStr += cnNums[0] + cnIntLast + cnInteger
                  } else if (decimalNum === '') {
                    chineseStr += cnInteger
                  }
                }else
                {
                  //退休费基数向上取整
                  //var sumTxfjs =0
                  //sumTxfjs = Math.ceil(this.resultA);
                  let seniorityAllowance = this.dataForm.seniorityAllowance; //教护龄津贴

                  let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                  let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴
                  let raiseWages = this.dataForm.raiseWages; //提高工资10%
                  let bonusAllowance = this.dataForm.bonusAllowance; //奖金津贴

                  let sumBasicRe = 0;
                  
                  if (raiseWages !== "" && raiseWages !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(raiseWages);
                  }
                  if (serviceAllowance !== "" && serviceAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
                  }
                  if (gradeSalary !== "" && gradeSalary !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                  }
                  if (bonusAllowance !== "" && bonusAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(bonusAllowance);
                  }
                  let bl = parseFloat(txfjfbl)/100;  
                  sumBasicRe = sumBasicRe * bl;

                  if (seniorityAllowance !== "" && seniorityAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(seniorityAllowance);
                  }
                  var newResultA = Math.ceil(sumBasicRe)

                  //重新计算退休费合计
                  var zdsctxfsl =  0;
                  var resultA = newResultA;
                  var resultB = this.resultB;
                  zdsctxfsl = parseFloat(resultA)+parseFloat(resultB);

                  //抚恤金合计
                  var fxjSum = 0;
                  fxjSum = parseFloat(rjkzpsrbz)*2+parseFloat(zdsctxfsl)*40 + 5000;

                  //转大写
                  var money = fxjSum;
                  var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                  var cnIntRadice = ['', '拾', '佰', '仟']
                  var cnIntUnits = ['', '万', '亿', '兆']
                  var cnDecUnits = ['角', '分', '毫', '厘']
                  var cnInteger = '整'
                  var cnIntLast = '元'
                  var maxNum = 999999999999999.9999
                  var integerNum
                  var decimalNum
                  var chineseStr = ''
                  var parts
                  if (money === '') {
                    return ''
                  }
                  money = parseFloat(money)
                  if (money >= maxNum) {
                    return ''
                  }
                  if (money === 0) {
                    chineseStr = cnNums[0] + cnIntLast + cnInteger
                    return chineseStr
                  }
                  money = money.toString()
                  if (money.indexOf('.') === -1) {
                    integerNum = money
                    decimalNum = ''
                  } else {
                    parts = money.split('.')
                    integerNum = parts[0]
                    decimalNum = parts[1].substr(0, 4)
                  }
                  if (parseInt(integerNum, 10) > 0) {
                    var zeroCount = 0
                    var IntLen = integerNum.length
                    for (var i = 0; i < IntLen; i++) {
                      var n = integerNum.substr(i, 1)
                      var p = IntLen - i - 1
                      var q = p / 4
                      var m = p % 4
                      if (n === '0') {
                        zeroCount++
                      } else {
                        if (zeroCount > 0) {
                          chineseStr += cnNums[0]
                        }
                        zeroCount = 0
                        chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                      }
                      if (m === 0 && zeroCount < 4) {
                        chineseStr += cnIntUnits[q]
                      }
                    }
                    chineseStr += cnIntLast
                  }
                  if (decimalNum !== '') {
                    var decLen = decimalNum.length
                    for (i = 0; i < decLen; i++) {
                      n = decimalNum.substr(i, 1)
                      if (n !== '0') {
                        chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                      }
                    }
                  }
                  if (chineseStr === '') {
                    chineseStr += cnNums[0] + cnIntLast + cnInteger
                  } else if (decimalNum === '') {
                    chineseStr += cnInteger
                  }
                }
              }else if((nian == 2003 && month >=7) || (nian > 2003 && nian < 2006) || (nian == 2006 && month <7))
              {  
                  //退休费基数向上取整
                  //var sumTxfjs =0
                  //sumTxfjs = Math.ceil(this.resultA);
                  let seniorityAllowance = this.dataForm.seniorityAllowance; //教护龄津贴

                  let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                  let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴
                  let raiseWages = this.dataForm.raiseWages; //提高工资10%
                  let bonusAllowance = this.dataForm.bonusAllowance; //奖金津贴

                  let sumBasicRe = 0;
                  
                  if (raiseWages !== "" && raiseWages !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(raiseWages);
                  }
                  if (serviceAllowance !== "" && serviceAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
                  }
                  if (gradeSalary !== "" && gradeSalary !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                  }
                  if (bonusAllowance !== "" && bonusAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(bonusAllowance);
                  }
                  let bl = parseFloat(txfjfbl)/100;  
                  sumBasicRe = sumBasicRe * bl;

                  if (seniorityAllowance !== "" && seniorityAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(seniorityAllowance);
                  }
                  var newResultA = Math.ceil(sumBasicRe)

                  //重新计算退休费合计
                  var zdsctxfsl =  0;
                  var resultA = newResultA;
                  var resultB = this.resultB;
                  zdsctxfsl = parseFloat(resultA)+parseFloat(resultB);

                  //抚恤金合计
                  var fxjSum = 0;
                  fxjSum = parseFloat(rjkzpsrbz)*2+parseFloat(zdsctxfsl)*40 + 5000;

                  //转大写
                  var money = fxjSum;
                  var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                  var cnIntRadice = ['', '拾', '佰', '仟']
                  var cnIntUnits = ['', '万', '亿', '兆']
                  var cnDecUnits = ['角', '分', '毫', '厘']
                  var cnInteger = '整'
                  var cnIntLast = '元'
                  var maxNum = 999999999999999.9999
                  var integerNum
                  var decimalNum
                  var chineseStr = ''
                  var parts
                  if (money === '') {
                    return ''
                  }
                  money = parseFloat(money)
                  if (money >= maxNum) {
                    return ''
                  }
                  if (money === 0) {
                    chineseStr = cnNums[0] + cnIntLast + cnInteger
                    return chineseStr
                  }
                  money = money.toString()
                  if (money.indexOf('.') === -1) {
                    integerNum = money
                    decimalNum = ''
                  } else {
                    parts = money.split('.')
                    integerNum = parts[0]
                    decimalNum = parts[1].substr(0, 4)
                  }
                  if (parseInt(integerNum, 10) > 0) {
                    var zeroCount = 0
                    var IntLen = integerNum.length
                    for (var i = 0; i < IntLen; i++) {
                      var n = integerNum.substr(i, 1)
                      var p = IntLen - i - 1
                      var q = p / 4
                      var m = p % 4
                      if (n === '0') {
                        zeroCount++
                      } else {
                        if (zeroCount > 0) {
                          chineseStr += cnNums[0]
                        }
                        zeroCount = 0
                        chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                      }
                      if (m === 0 && zeroCount < 4) {
                        chineseStr += cnIntUnits[q]
                      }
                    }
                    chineseStr += cnIntLast
                  }
                  if (decimalNum !== '') {
                    var decLen = decimalNum.length
                    for (i = 0; i < decLen; i++) {
                      n = decimalNum.substr(i, 1)
                      if (n !== '0') {
                        chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                      }
                    }
                  }
                  if (chineseStr === '') {
                    chineseStr += cnNums[0] + cnIntLast + cnInteger
                  } else if (decimalNum === '') {
                    chineseStr += cnInteger
                  }
              }else
              {
                  //退休费基数向上取整
                  //var sumTxfjs =0
                  //sumTxfjs = Math.ceil(this.resultA);
                  let seniorityAllowance = this.dataForm.seniorityAllowance; //教护龄津贴

                  let salaryScale = this.dataForm.salaryScale; //薪级工资
                  let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴
                  let raiseWages = this.dataForm.raiseWages; //提高工资10%
                  let gradeSalary = this.dataForm.gradeSalary; //岗位工资(标准工资)
                  let sumBasicRe = 0;
                  
                  if (raiseWages !== "" && raiseWages !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(raiseWages);
                  }
                  if (serviceAllowance !== "" && serviceAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
                  }
                  if (salaryScale !== "" && salaryScale !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(salaryScale);
                  }
                  if (gradeSalary !== "" && gradeSalary !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
                  }
                  let bl = parseFloat(txfjfbl)/100;  
                  sumBasicRe = sumBasicRe * bl;

                  if (seniorityAllowance !== "" && seniorityAllowance !== null) {
                    sumBasicRe = sumBasicRe + parseFloat(seniorityAllowance);
                  }
                  var newResultA = Math.ceil(sumBasicRe)

                  //重新计算退休费合计
                  var zdsctxfsl =  0;
                  var resultA = newResultA;
                  var resultB = this.resultB;
                  zdsctxfsl = parseFloat(resultA)+parseFloat(resultB);

                  //抚恤金合计
                  var fxjSum = 0;
                  fxjSum = parseFloat(rjkzpsrbz)*2+parseFloat(zdsctxfsl)*40 + 5000;

                  //转大写
                  var money = fxjSum;
                  var cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
                  var cnIntRadice = ['', '拾', '佰', '仟']
                  var cnIntUnits = ['', '万', '亿', '兆']
                  var cnDecUnits = ['角', '分', '毫', '厘']
                  var cnInteger = '整'
                  var cnIntLast = '元'
                  var maxNum = 999999999999999.9999
                  var integerNum
                  var decimalNum
                  var chineseStr = ''
                  var parts
                  if (money === '') {
                    return ''
                  }
                  money = parseFloat(money)
                  if (money >= maxNum) {
                    return ''
                  }
                  if (money === 0) {
                    chineseStr = cnNums[0] + cnIntLast + cnInteger
                    return chineseStr
                  }
                  money = money.toString()
                  if (money.indexOf('.') === -1) {
                    integerNum = money
                    decimalNum = ''
                  } else {
                    parts = money.split('.')
                    integerNum = parts[0]
                    decimalNum = parts[1].substr(0, 4)
                  }
                  if (parseInt(integerNum, 10) > 0) {
                    var zeroCount = 0
                    var IntLen = integerNum.length
                    for (var i = 0; i < IntLen; i++) {
                      var n = integerNum.substr(i, 1)
                      var p = IntLen - i - 1
                      var q = p / 4
                      var m = p % 4
                      if (n === '0') {
                        zeroCount++
                      } else {
                        if (zeroCount > 0) {
                          chineseStr += cnNums[0]
                        }
                        zeroCount = 0
                        chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]
                      }
                      if (m === 0 && zeroCount < 4) {
                        chineseStr += cnIntUnits[q]
                      }
                    }
                    chineseStr += cnIntLast
                  }
                  if (decimalNum !== '') {
                    var decLen = decimalNum.length
                    for (i = 0; i < decLen; i++) {
                      n = decimalNum.substr(i, 1)
                      if (n !== '0') {
                        chineseStr += cnNums[Number(n)] + cnDecUnits[i]
                      }
                    }
                  }
                  if (chineseStr === '') {
                    chineseStr += cnNums[0] + cnIntLast + cnInteger
                  } else if (decimalNum === '') {
                    chineseStr += cnInteger
                  }
              }
          }

        

          if (this.dataForm.id) {
              var data = {
                  title:'（1985年工改前退休人员xxx）',
                  // id: this.dataForm.id || undefined,
                  areaCode: this.dataForm.areaCode,
                  personalCode: this.dataForm.personalCode,
                  name: this.dataForm.name,
                  sex: this.dataForm.sex,
                  nation: this.dataForm.nation,
                  politicalFace: this.dataForm.politicalFace,
                  idNo: this.dataForm.idNo,
                  birthDate: this.dataForm.birthDate,
                  workTime: this.dataForm.workTime,
                  txsj: this.dataForm.retirementTime,
                  retirementStatus: this.dataForm.retirementStatus,
                  duties: this.dataForm.duties,
                  county: this.dataForm.county,
                  street: this.dataForm.street,
                  community: this.dataForm.community,
                  ybd: this.dataForm.originalTroops,
                  yjsj: this.dataForm.handoverPeriod,
                  handoverTime: this.dataForm.handoverTime,
                  handoverMode: this.dataForm.handoverMode,
                  handoverBatch: this.dataForm.handoverBatch,
                  workersClassification: this.dataForm.workersClassification,
                  reception: this.dataForm.reception,
                  myStatus: this.dataForm.myStatus,
                  inOutTime: this.dataForm.inOutTime,
                  bgsj: this.dataForm.deathTime,
                  housingSituation: this.dataForm.housingSituation,
                  housingPropertyRight: this.dataForm.housingPropertyRight,
                  leaseholder: this.dataForm.leaseholder,
                  housingArea: this.dataForm.housingArea,
                  increasePension: 0.0,
                  totalMonthlyPension: this.dataForm.totalMonthlyPension,
                  death: this.dataForm.death,
                  workUnit: this.dataForm.workUnit,
                  address: this.dataForm.address,
                  phone: this.dataForm.phone,
                  remarks: this.dataForm.remarks,
                  workYears: this.dataForm.workingYears,
                  yuYue: this.dataForm.yuYue,
                  jdgznx: this.dataForm.workingYearsArmy,
                  jl: this.dataForm.teachingAge,
                  wageLevel: this.dataForm.wageLevel,
                  wageGrade: this.dataForm.wageGrade,
                  wageScale: this.dataForm.wageScale,
                  treatmentStandard: this.dataForm.treatmentStandard,
                  personnelClassification: this.dataForm.personnelClassification,
                  enjoyAllowance: this.dataForm.enjoyAllowance,
                  specialAllowance: this.dataForm.specialAllowance,
                  increaseProportion: this.dataForm.increaseProportion,
                  renson: this.dataForm.renson,
                  allowanceRatio: this.dataForm.allowanceRatio,
                  postLevel: this.dataForm.postLevel,
                  salary: this.dataForm.salary,
                  isImprove: this.dataForm.isImprove,
                  jbtxfjfbl: this.dataForm.retirementFeeProportion,
                  glgz: this.dataForm.senioritySalary,
                  jcgz: this.dataForm.basicSalary,
                  jbgz: this.dataForm.levelSalary,
                  gwbzgz: this.dataForm.gradeSalary,
                  xjgz: this.dataForm.salaryScale,
                  jjjt: this.dataForm.bonusAllowance,
                  jdfwjt: this.dataForm.serviceAllowance,
                  jhljt: this.dataForm.seniorityAllowance,
                  fzzwbt: this.dataForm.totalSubsidy,
                  tjjsqtjt: this.dataForm.specialTeacherSubsidy,
                  knbz: this.dataForm.difficultySubsidy,
                  gztg: this.dataForm.raiseWages,
                  zjtxfA: this.dataForm.retirementPayEightynine,
                  tgtxfB: this.dataForm.retirementPayNinetytwo,
                  zjtxfI: this.dataForm.retirementPayFirst,
                  zjtxfJ: this.dataForm.retirementPaySecond,
                  zjtxfC: this.dataForm.retirementPayNinetyfive,
                  zjtxfK: this.dataForm.retirementPayNinetyseven,
                  zjtxfD: this.dataForm.retirementPayNinetysesec,
                  zjtxfL: this.dataForm.retirementPayNinetynine,
                  zjtxfF: this.dataForm.retirementPayNinetynisec,
                  zjtxfR: this.dataForm.retirementPayZero,
                  zjtxfM: this.dataForm.retirementPayOne,
                  zjtxfN: this.dataForm.retirementPayOnenew,
                  zjtxfE: this.dataForm.retirementPayOnsec,
                  zjtxfO: this.dataForm.retirementPayThird,
                  zjtxfG: this.dataForm.retirementPayThisec,
                  zjtxfH: this.dataForm.retirementPayFive,
                  zjtxfP: this.dataForm.retirementPaySix,
                  fsbtA: this.dataForm.foodAllowanceSeventynine,
                  fsbtB: this.dataForm.foodAllowanceEightyeight,
                  lybtA: this.dataForm.oilAllowanceNightyone,
                  lybtB: this.dataForm.oilAllowanceNightytwo,
                  rlbtA: this.dataForm.fuelLlowance,
                  rcbtA: this.dataForm.meatLlowance,
                  lybtC: this.dataForm.oilAllowanceNightythird,
                  shbtA: this.dataForm.livingAllowanceEightyfive,
                  shbtB: this.dataForm.livingAllowanceEightyei,
                  shbtC: this.dataForm.livingAllowanceNightytw,
                  shbtD: this.dataForm.livingAllowanceNightyfo,
                  shbtE: this.dataForm.livingAllowanceNightyfive,
                  zjshbtB: this.dataForm.livingAllowanceNightysix,
                  zjshbtC: this.dataForm.livingAllowanceNightysev,
                  zjshbtD: this.dataForm.livingAllowanceNightyeig,
                  zjshbtE: this.dataForm.livingAllowanceNightynig,
                  zjshbtF: this.dataForm.livingAllowanceZero,
                  zjshbtG: this.dataForm.livingAllowanceOne,
                  zjshbtH: this.dataForm.livingAllowanceTwo,
                  zjshbtI: this.dataForm.livingAllowanceThird,
                  zjshbtJ: this.dataForm.livingAllowanceFour,
                  zjshbtA: this.dataForm.livingAllowanceSeven,
                  specialGoveAllowanc: this.dataForm.specialGoveAllowanc,
                  sbf: this.dataForm.paperMoney,
                  zfbt: this.dataForm.housingSubsidy,
                  xlf: this.dataForm.bathSubsidy,
                  ryjt: this.dataForm.honorAllowance,
                  qtsr: this.dataForm.otherIncome,
                  zwbtA: this.dataForm.jobSubsidy,
                  nlbtA: this.dataForm.ageAllowance,
                  holidaySubsidy: this.dataForm.holidaySubsidy,
                  txbtA: this.dataForm.retirementAllowanceOneo,
                  growthMechanismSubsidy: this.dataForm.growthMechanismSubsidy,
                  gznxbt: this.dataForm.workingYearsSubsidy,
                  tgblbt: this.dataForm.proportionalSubsidy,
                  txbtB: this.dataForm.retirementAllowanceOneth,
                  zzjzbtA: this.dataForm.growthMechanismThirty,
                  txbtC: this.dataForm.retirementAllowanceThirty,
                  zjtxfQ: this.dataForm.retirementPayFourty,
                  logoutDate: this.dataForm.logoutDate,
                  heatingSubsidy: this.dataForm.heatingSubsidy,
                  wyfwbt: this.dataForm.serviceSubsidy,
                  zjyljA: this.dataForm.pensionSixteen,
                  zjyljB: this.dataForm.pensionSeventeen,
                  zjyljC: this.dataForm.pensionEighteen,
                  zjyljD: this.dataForm.pensionNineteen,
                  tzdyA: this.dataForm.adjustTreatment,
                  basicPension: this.dataForm.basicPension,
                  zjyljF: this.dataForm.pensionTwenty,
                  zjyljE: this.dataForm.pensionTwentyone,
                  jbtxfzkhj:newResultA,
                  lczjtxfhj:this.resultB,
                  jgshbthj: this.resultC,
                  zjshjzhj: this.resultF,
                  qthj: this.resultG,
                  zdsctxf: this.resultH,
                  state:0,
                  zjshjzbthj:this.resultD,
                  fxjhj:fxjSum,
                  lczjtxfhjsl:lczjtxfhjsl,
                  jgshbthjsl:jgshbthjsl,
                  zdsctxfsl:zdsctxfsl,
                  dx:chineseStr,
                  jbtxfzkhjsl:jbtxfzkhjsl,
                  rjkzpsr:rjkzpsrbz,
                  ext1:this.dataForm.ext1,
                }
          
            
              if(deathNian<2011 || (deathNian == 2011 && deathMonth <8))
              {
                if(nian < 1985)
                {
                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjA1.docx", data, `抚恤金.docx`);
                }else if(((nian >= 1985 && nian <1993)) || ((nian == 1993 && month <10)))
                {
                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjA2.docx", data, `抚恤金.docx`);
                }else if((nian == 1993 && month >=10) || (nian >1993 && nian <2003) || (nian == 2003 && month <7))
                {
                  if(txqsf == "职员" && dybz == '机关职员标准')
                  {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjA3.docx", data, `抚恤金.docx`);
                  }else
                  {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjA4.docx", data, `抚恤金.docx`);
                  }
                }else if((nian == 2003 && month >=7) || (nian > 2003 && nian < 2006) || (nian == 2006 && month <7))
                {
                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjA4.docx", data, `抚恤金.docx`);
                }else
                {
                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjA5.docx", data, `抚恤金.docx`);
                }
              }else
              {
                if(nian < 1985)
                {
                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjB1.docx", data, `抚恤金.docx`);
                }else if(((nian >= 1985 && nian <1993)) || ((nian == 1993 && month <10)))
                {
                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjB2.docx", data, `抚恤金.docx`);
                }else if((nian == 1993 && month >=10) || (nian >1993 && nian <2003) || (nian == 2003 && month <7))
                {
                  if(txqsf == "职员" && dybz == '机关职员标准')
                  {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjB3.docx", data, `抚恤金.docx`);
                  }else
                  {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjB4.docx", data, `抚恤金.docx`);
                  }
                }else if((nian == 2003 && month >=7) || (nian > 2003 && nian < 2006) || (nian == 2006 && month <7))
                {
                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjB4.docx", data, `抚恤金.docx`);
                }else
                {
                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/fxjB5.docx", data, `抚恤金.docx`);
                }
              }
            
            }

          
        }
      })


       
		}
  },
};

export const exportDocx = (tempDocxPath, data, fileName) => {
  // 读取并获得模板文件的二进制内容
  JSZipUtils.getBinaryContent(tempDocxPath, (error, content) => {
    if (error) {
      throw error;
    }
    let zip = new PizZip(content);
    let doc = new docxtemplater().loadZip(zip);
    doc.setData(data);
    try {
      // render the document (replace all occurences of {first_name} by John, {last_name} by Doe, ...)
      doc.render();
    } catch (error) {
      let e = {
        message: error.message,
        name: error.name,
        stack: error.stack,
        properties: error.properties,
      };
      console.log({
        error: e
      });
      // The error thrown here contains additional information when logged with JSON.stringify (it contains a property object).
      throw error;
    }
    let out = doc.getZip().generate({
      type: "blob",
      mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    }); //Output the document using Data-URI
    saveAs(out, fileName);
    // var newPreview = document.getElementById("file");
    // const docx = require('docx-preview');
    // window.JSZip = require('jszip')
    // docx.renderAsync(out,newPreview) 
   

  });
};
</script>
<style>
.el-input.is-disabled .el-input__inner {
background-color: #f5f7fa;
border-color: #e4e7ed;
color: #000;
cursor:pointer
}
.el-select .el-input.is-disabled .el-input__inner {
background-color: #f5f7fa;
border-color: #e4e7ed;
color: #000;
cursor:pointer
}
.el-textarea.is-disabled .el-textarea__inner {
background-color: #f5f7fa;
border-color: #e4e7ed;
color: #000;
cursor:pointer
}
</style>